authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-18 14:59:27+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-18 22:27:35+02:00
log08014589e291d9ffc8ba4d7abc9a669bfd0c3bec
tree99c78e9fd5b2434f73b5a71776ecf9ec1437214d
parent49cd0e6f7ce108292528c8210f3b967b31e2c341
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.atomic: define cache line size for or1k


1 files changed, 2 insertions(+), 0 deletions(-)

lib/std/atomic.zig+2
......@@ -445,7 +445,9 @@ pub fn cacheLineForCpu(cpu: std.Target.Cpu) u16 {
445445 => 32,
446446
447447 // - https://github.com/torvalds/linux/blob/3a7e02c040b130b5545e4b115aada7bacd80a2b6/arch/m68k/include/asm/cache.h#L10
448 // - https://github.com/torvalds/linux/blob/3a7e02c040b130b5545e4b115aada7bacd80a2b6/arch/openrisc/include/asm/cache.h#L24
448449 .m68k,
450 .or1k,
449451 => 16,
450452
451453 // - https://www.ti.com/lit/pdf/slaa498