2020-01-14 10:38:55 +00:00
|
|
|
// Copyright 2019 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2021-06-04 08:59:18 +00:00
|
|
|
//go:build riscv64
|
2020-01-14 10:38:55 +00:00
|
|
|
|
|
|
|
package cpu
|
|
|
|
|
2023-10-09 21:03:25 +00:00
|
|
|
const cacheLineSize = 64
|
2020-12-17 12:28:29 +00:00
|
|
|
|
2024-09-09 20:04:53 +00:00
|
|
|
func initOptions() {
|
|
|
|
options = []option{
|
|
|
|
{Name: "fastmisaligned", Feature: &RISCV64.HasFastMisaligned},
|
|
|
|
{Name: "c", Feature: &RISCV64.HasC},
|
|
|
|
{Name: "v", Feature: &RISCV64.HasV},
|
|
|
|
{Name: "zba", Feature: &RISCV64.HasZba},
|
|
|
|
{Name: "zbb", Feature: &RISCV64.HasZbb},
|
|
|
|
{Name: "zbs", Feature: &RISCV64.HasZbs},
|
|
|
|
}
|
|
|
|
}
|