]> Cypherpunks repositories - gostls13.git/commitdiff
runtime internal/cpu: rename "Zeus" "NeoverseV1".
authorMatthew Horsnell <matthew.horsnell@gmail.com>
Tue, 28 Jun 2022 13:25:58 +0000 (14:25 +0100)
committerGopher Robot <gobot@golang.org>
Tue, 8 Nov 2022 23:11:32 +0000 (23:11 +0000)
Rename "Zeus" to "NeoverseV1" for the partnum 0xd40 to be
consistent with the documentation of MIDR_EL1 as described in
https://developer.arm.com/documentation/101427/0101/?lang=en

Change-Id: I2e3d5ec76b953a831cb4ab0438bc1c403648644b
Reviewed-on: https://go-review.googlesource.com/c/go/+/414775
Reviewed-by: Jonathan Swinney <jswinney@amazon.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Eric Fang <eric.fang@arm.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/internal/cpu/cpu.go
src/internal/cpu/cpu_arm64.go
src/internal/cpu/cpu_arm64_hwcap.go
src/runtime/cpuflags_arm64.go

index 2d3fae12ae4dc3491cb64fc6691af6b069f7c720..aef9fb3be76cca5bad77f3f1ccbb053a7ff881bb 100644 (file)
@@ -67,7 +67,7 @@ var ARM64 struct {
        HasATOMICS   bool
        HasCPUID     bool
        IsNeoverseN1 bool
-       IsZeus       bool
+       IsNeoverseV1 bool
        _            CacheLinePad
 }
 
index 1d4431753d2b828dae5f06164db1e23ea3295f30..85210aa00c72676922f9fbf5ef0ac62d5e45c480 100644 (file)
@@ -20,7 +20,7 @@ func doinit() {
                {Name: "atomics", Feature: &ARM64.HasATOMICS},
                {Name: "cpuid", Feature: &ARM64.HasCPUID},
                {Name: "isNeoverseN1", Feature: &ARM64.IsNeoverseN1},
-               {Name: "isZeus", Feature: &ARM64.IsZeus},
+               {Name: "isNeoverseV1", Feature: &ARM64.IsNeoverseV1},
        }
 
        // arm64 uses different ways to detect CPU features at runtime depending on the operating system.
index 0baa39f9cf79b0b98f6f92ecb5287578f790ec77..0fb5fb505a8f2647dd54742b800f9cf6449719d8 100644 (file)
@@ -52,7 +52,7 @@ func hwcapInit(os string) {
                        ARM64.IsNeoverseN1 = true
                }
                if implementor == 'A' && part_num == 0xd40 {
-                       ARM64.IsZeus = true
+                       ARM64.IsNeoverseV1 = true
                }
        }
 }
index 7576bef4a75672fa726609d1085a96e0f62d0fbd..a0f1d114d87bf8bac6b420743efd8bdf23494c0c 100644 (file)
@@ -11,7 +11,7 @@ import (
 var arm64UseAlignedLoads bool
 
 func init() {
-       if cpu.ARM64.IsNeoverseN1 || cpu.ARM64.IsZeus {
+       if cpu.ARM64.IsNeoverseN1 || cpu.ARM64.IsNeoverseV1 {
                arm64UseAlignedLoads = true
        }
 }