...
Source file
src/runtime/os_linux_s390x.go
Documentation: runtime
1
2
3
4
5 package runtime
6
7 import "internal/cpu"
8
9 const (
10 _HWCAP_VX = 1 << 11
11 )
12
13 func archauxv(tag, val uintptr) {
14 switch tag {
15 case _AT_HWCAP:
16 cpu.HWCap = uint(val)
17 }
18 }
19
20 func osArchInit() {}
21
22 func checkS390xCPU() {
23
24
25
26
27 if cpu.HWCap&_HWCAP_VX == 0 {
28 print("runtime: This CPU has no floating point hardware, so this program cannot be run. \n")
29 exit(1)
30 }
31 }
32
View as plain text