1
0
mirror of https://github.com/golang/go synced 2024-11-23 21:00:06 -07:00

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 <moehrmann@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
Martin Möhrmann 2017-05-11 07:36:09 +02:00
parent 7045e6f6c4
commit e0e7c03d14
2 changed files with 2 additions and 2 deletions

View File

@ -4,4 +4,4 @@
package cpu
const CacheLineSize = 32
const CacheLineSize = 64

View File

@ -7,7 +7,7 @@ package sys
const (
ArchFamily = ARM64
BigEndian = 0
CacheLineSize = 32
CacheLineSize = 64
DefaultPhysPageSize = 65536
PCQuantum = 4
Int64Align = 8