Skip to content

Commit

Permalink
internal/cpu: fix wrong cache line size of riscv64
Browse files Browse the repository at this point in the history
All of riscv CPU using 64B for cache-line size.
i.e. U540 of Hifive Unleashed (https://www.sifive.com/boards/hifive-unleashed)

Change-Id: I0d72d88ac026f45383c3b3eb3a77233d3c2e4004
Reviewed-on: https://go-review.googlesource.com/c/go/+/526659
Run-TryBot: M Zhuo <[email protected]>
Reviewed-by: Cherry Mui <[email protected]>
Reviewed-by: Heschi Kreinick <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
  • Loading branch information
mengzhuo committed Sep 12, 2023
1 parent 8221f90 commit 5e31f78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/cpu/cpu_riscv64.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package cpu

const CacheLinePadSize = 32
const CacheLinePadSize = 64

func doinit() {
}

0 comments on commit 5e31f78

Please sign in to comment.