Skip to content

Commit

Permalink
runtime internal/cpu: rename "Zeus" "NeoverseV1".
Browse files Browse the repository at this point in the history
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 <[email protected]>
Auto-Submit: Ian Lance Taylor <[email protected]>
Reviewed-by: Eric Fang <[email protected]>
Run-TryBot: Ian Lance Taylor <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Cherry Mui <[email protected]>
Reviewed-by: Michael Pratt <[email protected]>
  • Loading branch information
matt2909 authored and gopherbot committed Nov 8, 2022
1 parent 896faf3 commit fe4e59e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/internal/cpu/cpu.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ var ARM64 struct {
HasATOMICS bool
HasCPUID bool
IsNeoverseN1 bool
IsZeus bool
IsNeoverseV1 bool
_ CacheLinePad
}

Expand Down
2 changes: 1 addition & 1 deletion src/internal/cpu/cpu_arm64.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/internal/cpu/cpu_arm64_hwcap.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func hwcapInit(os string) {
ARM64.IsNeoverseN1 = true
}
if implementor == 'A' && part_num == 0xd40 {
ARM64.IsZeus = true
ARM64.IsNeoverseV1 = true
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/cpuflags_arm64.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit fe4e59e

Please sign in to comment.