authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-08-09 16:08:06+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-08-09 17:53:04+02:00
logfb578f3d17e839f0454cee4832baf2d4c95c4bae
treeee008c4a931f9ce371a3d3311d28d5cc42248576
parent9e9047b7e8f4fd55cd8a525ba64e4830dc8fe1b9
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.atomic: use pause on mips r2+ in spinLoopHint


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

lib/std/atomic.zig+8
...@@ -392,6 +392,14 @@ pub inline fn spinLoopHint() void {...@@ -392,6 +392,14 @@ pub inline fn spinLoopHint() void {
392 .hexagon,392 .hexagon,
393 => asm volatile ("pause(#1)"),393 => asm volatile ("pause(#1)"),
394394
395 .mips,
396 .mipsel,
397 .mips64,
398 .mips64el,
399 => if (comptime builtin.cpu.has(.mips, .mips32r2)) {
400 asm volatile ("pause");
401 },
402
395 .riscv32,403 .riscv32,
396 .riscv32be,404 .riscv32be,
397 .riscv64,405 .riscv64,