Commit aeee34cb authored by Martin Möhrmann's avatar Martin Möhrmann

runtime: remove unused cpuid_X variables

They are not exported and not used in the compiler or standard library.

Change-Id: Ie1d210464f826742d282f12258ed1792cbd2d188
Reviewed-on: https://go-review.googlesource.com/43135
Run-TryBot: Martin Möhrmann <moehrmann@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: 's avatarKeith Randall <khr@golang.org>
parent 201fd165
...@@ -76,8 +76,6 @@ notintel: ...@@ -76,8 +76,6 @@ notintel:
CPUID CPUID
MOVL CX, DI // Move to global variable clobbers CX when generating PIC MOVL CX, DI // Move to global variable clobbers CX when generating PIC
MOVL AX, runtime·processorVersionInfo(SB) MOVL AX, runtime·processorVersionInfo(SB)
MOVL DI, runtime·cpuid_ecx(SB)
MOVL DX, runtime·cpuid_edx(SB)
// Check for MMX support // Check for MMX support
TESTL $(1<<23), DX // MMX TESTL $(1<<23), DX // MMX
...@@ -116,7 +114,6 @@ eax7: ...@@ -116,7 +114,6 @@ eax7:
MOVL $7, AX MOVL $7, AX
MOVL $0, CX MOVL $0, CX
CPUID CPUID
MOVL BX, runtime·cpuid_ebx7(SB)
TESTL $(1<<3), BX // BMI1 TESTL $(1<<3), BX // BMI1
SETNE runtime·support_bmi1(SB) SETNE runtime·support_bmi1(SB)
......
...@@ -49,8 +49,6 @@ notintel: ...@@ -49,8 +49,6 @@ notintel:
MOVL $1, AX MOVL $1, AX
CPUID CPUID
MOVL AX, runtime·processorVersionInfo(SB) MOVL AX, runtime·processorVersionInfo(SB)
MOVL CX, runtime·cpuid_ecx(SB)
MOVL DX, runtime·cpuid_edx(SB)
TESTL $(1<<26), DX // SSE2 TESTL $(1<<26), DX // SSE2
SETNE runtime·support_sse2(SB) SETNE runtime·support_sse2(SB)
...@@ -85,7 +83,6 @@ eax7: ...@@ -85,7 +83,6 @@ eax7:
MOVL $7, AX MOVL $7, AX
MOVL $0, CX MOVL $0, CX
CPUID CPUID
MOVL BX, runtime·cpuid_ebx7(SB)
TESTL $(1<<3), BX // BMI1 TESTL $(1<<3), BX // BMI1
SETNE runtime·support_bmi1(SB) SETNE runtime·support_bmi1(SB)
......
...@@ -46,8 +46,6 @@ notintel: ...@@ -46,8 +46,6 @@ notintel:
MOVL $1, AX MOVL $1, AX
CPUID CPUID
MOVL AX, runtime·processorVersionInfo(SB) MOVL AX, runtime·processorVersionInfo(SB)
MOVL CX, runtime·cpuid_ecx(SB)
MOVL DX, runtime·cpuid_edx(SB)
TESTL $(1<<26), DX // SSE2 TESTL $(1<<26), DX // SSE2
SETNE runtime·support_sse2(SB) SETNE runtime·support_sse2(SB)
...@@ -82,7 +80,6 @@ eax7: ...@@ -82,7 +80,6 @@ eax7:
MOVL $7, AX MOVL $7, AX
MOVL $0, CX MOVL $0, CX
CPUID CPUID
MOVL BX, runtime·cpuid_ebx7(SB)
TESTL $(1<<3), BX // BMI1 TESTL $(1<<3), BX // BMI1
SETNE runtime·support_bmi1(SB) SETNE runtime·support_bmi1(SB)
......
...@@ -746,12 +746,6 @@ var ( ...@@ -746,12 +746,6 @@ var (
support_sse42 bool support_sse42 bool
support_ssse3 bool support_ssse3 bool
// TODO(moehrmann) delete below variables once external
// packages have their dependencies on these removed.
cpuid_ecx uint32
cpuid_edx uint32
cpuid_ebx7 uint32 // not set on amd64p32
goarm uint8 // set by cmd/link on arm systems goarm uint8 // set by cmd/link on arm systems
framepointer_enabled bool // set by cmd/link framepointer_enabled bool // set by cmd/link
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment