aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/cpuflags.go9
-rw-r--r--src/runtime/proc.go6
-rw-r--r--src/runtime/runtime2.go6
3 files changed, 12 insertions, 9 deletions
diff --git a/src/runtime/cpuflags.go b/src/runtime/cpuflags.go
index b65523766a..1565afb93a 100644
--- a/src/runtime/cpuflags.go
+++ b/src/runtime/cpuflags.go
@@ -17,3 +17,12 @@ const (
offsetARMHasIDIVA = unsafe.Offsetof(cpu.ARM.HasIDIVA)
)
+
+var (
+ // Set in runtime.cpuinit.
+ // TODO: deprecate these; use internal/cpu directly.
+ x86HasPOPCNT bool
+ x86HasSSE41 bool
+
+ arm64HasATOMICS bool
+)
diff --git a/src/runtime/proc.go b/src/runtime/proc.go
index 837fa93bfa..41ac75d3dd 100644
--- a/src/runtime/proc.go
+++ b/src/runtime/proc.go
@@ -509,10 +509,10 @@ func cpuinit() {
// Support cpu feature variables are used in code generated by the compiler
// to guard execution of instructions that can not be assumed to be always supported.
- support_popcnt = cpu.X86.HasPOPCNT
- support_sse41 = cpu.X86.HasSSE41
+ x86HasPOPCNT = cpu.X86.HasPOPCNT
+ x86HasSSE41 = cpu.X86.HasSSE41
- arm64_support_atomics = cpu.ARM64.HasATOMICS
+ arm64HasATOMICS = cpu.ARM64.HasATOMICS
}
// The bootstrap sequence is:
diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go
index 66dd1b19c1..290a7bd311 100644
--- a/src/runtime/runtime2.go
+++ b/src/runtime/runtime2.go
@@ -858,12 +858,6 @@ var (
isIntel bool
lfenceBeforeRdtsc bool
- // Set in runtime.cpuinit.
- // TODO: deprecate these; use internal/cpu directly.
- support_popcnt bool
- support_sse41 bool
- arm64_support_atomics bool
-
goarm uint8 // set by cmd/link on arm systems
framepointer_enabled bool // set by cmd/link
)