internal/cpu: don't define CacheLinePadSize for mips64x
[official-gcc.git] / libgo / go / internal / cpu / cpu_mips64x.go
blobaf10a5071eae9c06be13f27679eb41dcf77c47ae
1 // Copyright 2019 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // +build mips64 mips64le
7 package cpu
9 // This is initialized by archauxv and should not be changed after it is
10 // initialized.
11 var HWCap uint
13 // HWCAP bits. These are exposed by the Linux kernel 5.4.
14 const (
15 // CPU features
16 hwcap_MIPS_MSA = 1 << 1
19 func doinit() {
20 options = []option{
21 {Name: "msa", Feature: &MIPS64X.HasMSA},
24 // HWCAP feature bits
25 MIPS64X.HasMSA = isSet(HWCap, hwcap_MIPS_MSA)
28 func isSet(hwc uint, value uint) bool {
29 return hwc&value != 0