]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove unused cpuid_X variables
authorMartin Möhrmann <moehrmann@google.com>
Wed, 10 May 2017 17:03:48 +0000 (19:03 +0200)
committerMartin Möhrmann <moehrmann@google.com>
Wed, 10 May 2017 19:28:42 +0000 (19:28 +0000)
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: Keith Randall <khr@golang.org>
src/runtime/asm_386.s
src/runtime/asm_amd64.s
src/runtime/asm_amd64p32.s
src/runtime/runtime2.go

index dc5db91ea856eb7e803f5111636df2c274f0c2fe..5bbf2866f30c37db604be3432a559acb009e063b 100644 (file)
@@ -76,8 +76,6 @@ notintel:
        CPUID
        MOVL    CX, DI // Move to global variable clobbers CX when generating PIC
        MOVL    AX, runtime·processorVersionInfo(SB)
-       MOVL    DI, runtime·cpuid_ecx(SB)
-       MOVL    DX, runtime·cpuid_edx(SB)
 
        // Check for MMX support
        TESTL   $(1<<23), DX // MMX
@@ -116,7 +114,6 @@ eax7:
        MOVL    $7, AX
        MOVL    $0, CX
        CPUID
-       MOVL    BX, runtime·cpuid_ebx7(SB)
 
        TESTL   $(1<<3), BX // BMI1
        SETNE   runtime·support_bmi1(SB)
index fb428c40db79716aa864e5245b89b3ef5a2642a6..6405be92defe925dcc3352cf6f877e07d69bb34c 100644 (file)
@@ -49,8 +49,6 @@ notintel:
        MOVL    $1, AX
        CPUID
        MOVL    AX, runtime·processorVersionInfo(SB)
-       MOVL    CX, runtime·cpuid_ecx(SB)
-       MOVL    DX, runtime·cpuid_edx(SB)
 
        TESTL   $(1<<26), DX // SSE2
        SETNE   runtime·support_sse2(SB)
@@ -85,7 +83,6 @@ eax7:
        MOVL    $7, AX
        MOVL    $0, CX
        CPUID
-       MOVL    BX, runtime·cpuid_ebx7(SB)
 
        TESTL   $(1<<3), BX // BMI1
        SETNE   runtime·support_bmi1(SB)
index e97674cc8426c5e23bc28f721bc41a3f84002a25..6367b3fef407436180cdf01b655d8a27162996fd 100644 (file)
@@ -46,8 +46,6 @@ notintel:
        MOVL    $1, AX
        CPUID
        MOVL    AX, runtime·processorVersionInfo(SB)
-       MOVL    CX, runtime·cpuid_ecx(SB)
-       MOVL    DX, runtime·cpuid_edx(SB)
 
        TESTL   $(1<<26), DX // SSE2
        SETNE   runtime·support_sse2(SB)
@@ -82,7 +80,6 @@ eax7:
        MOVL    $7, AX
        MOVL    $0, CX
        CPUID
-       MOVL    BX, runtime·cpuid_ebx7(SB)
 
        TESTL   $(1<<3), BX // BMI1
        SETNE   runtime·support_bmi1(SB)
index 8c4d41d9289353846ba03b39c3b014c57cb32f27..b0ebfd818c6a3c5747fd4f0d5763e613959413a8 100644 (file)
@@ -746,12 +746,6 @@ var (
        support_sse42        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
        framepointer_enabled bool  // set by cmd/link
 )