diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-10-14 14:10:16 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-10-14 14:10:16 +0000 |
commit | 2dccdbcff61201656cf1b37cd690ad6c3f7db8ad (patch) | |
tree | 442a311a238aa5fcff6b3e13104f7cfe5fa65760 /libgo/go/runtime | |
parent | fc2d730302da5cdf340a5100882337a807097f47 (diff) | |
download | gcc-2dccdbcff61201656cf1b37cd690ad6c3f7db8ad.zip gcc-2dccdbcff61201656cf1b37cd690ad6c3f7db8ad.tar.gz gcc-2dccdbcff61201656cf1b37cd690ad6c3f7db8ad.tar.bz2 |
runtime: correct facilities names in s390 CPU support
Patch from Andreas Krebbel.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/201038
From-SVN: r276964
Diffstat (limited to 'libgo/go/runtime')
-rw-r--r-- | libgo/go/runtime/os_linux_s390x.go | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libgo/go/runtime/os_linux_s390x.go b/libgo/go/runtime/os_linux_s390x.go index 7640273..46fe817 100644 --- a/libgo/go/runtime/os_linux_s390x.go +++ b/libgo/go/runtime/os_linux_s390x.go @@ -16,18 +16,20 @@ const ( _HWCAP_S390_DFP = 64 _HWCAP_S390_ETF3EH = 256 _HWCAP_S390_VX = 2048 // vector facility + _HWCAP_S390_VXE = 8192 ) func archauxv(tag, val uintptr) { switch tag { case _AT_HWCAP: // CPU capability bit flags - cpu.S390X.HasZArch = val&_HWCAP_S390_ZARCH != 0 + cpu.S390X.HasZARCH = val&_HWCAP_S390_ZARCH != 0 cpu.S390X.HasSTFLE = val&_HWCAP_S390_STFLE != 0 - cpu.S390X.HasMSA = val&_HWCAP_S390_MSA != 0 - cpu.S390X.HasLDisp = val&_HWCAP_S390_LDISP != 0 - cpu.S390X.HasEImm = val&_HWCAP_S390_EIMM != 0 + cpu.S390X.HasLDISP = val&_HWCAP_S390_LDISP != 0 + cpu.S390X.HasEIMM = val&_HWCAP_S390_EIMM != 0 cpu.S390X.HasDFP = val&_HWCAP_S390_DFP != 0 - cpu.S390X.HasETF3Enhanced = val&_HWCAP_S390_ETF3EH != 0 + cpu.S390X.HasETF3EH = val&_HWCAP_S390_ETF3EH != 0 + cpu.S390X.HasMSA = val&_HWCAP_S390_MSA != 0 cpu.S390X.HasVX = val&_HWCAP_S390_VX != 0 + cpu.S390X.HasVXE = val&_HWCAP_S390_VXE != 0 } } |