Skip to content

Commit e0e7c03

Browse files
committed
runtime, internal/cpu: change cache line size for arm64 to 64 bytes
According to http://infocenter.arm.com: * ARM Cortex-A53 (Raspberry Pi 3, Pine A64) * ARM Cortex-A57 (Opteron A1100, Tegra X1) * ARM Cortex-A72 all have a cache line size of 64 bytes. Change-Id: I4b333e930792fb1a221b3ca6f395bfa1b7762afa Reviewed-on: https://go-review.googlesource.com/43250 Run-TryBot: Martin Möhrmann <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Keith Randall <[email protected]>
1 parent 7045e6f commit e0e7c03

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/internal/cpu/cpu_arm64.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
package cpu
66

7-
const CacheLineSize = 32
7+
const CacheLineSize = 64

src/runtime/internal/sys/arch_arm64.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ package sys
77
const (
88
ArchFamily = ARM64
99
BigEndian = 0
10-
CacheLineSize = 32
10+
CacheLineSize = 64
1111
DefaultPhysPageSize = 65536
1212
PCQuantum = 4
1313
Int64Align = 8

0 commit comments

Comments
 (0)