1
0
mirror of https://github.com/DNSCrypt/dnscrypt-proxy.git synced 2025-01-16 02:40:37 +01:00
dnscrypt-proxy/vendor/golang.org/x/sys/cpu/cpu_riscv64.go

21 lines
538 B
Go
Raw Normal View History

2019-11-15 04:34:38 +01: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-02-20 18:55:58 +01:00
//go:build riscv64
2019-11-15 04:34:38 +01:00
package cpu
2023-10-12 15:53:53 +02:00
const cacheLineSize = 64
2020-09-18 18:19:55 +02:00
2024-09-10 23:28:24 +02: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},
}
}