diff --git a/lib/std/atomic.zig b/lib/std/atomic.zig index afbb9137be5148f830dd2fb1cfc3eb5b3535e0b8..d5a7403b092225c33adf976a68ae7e5021b958e5 100644 --- a/lib/std/atomic.zig +++ b/lib/std/atomic.zig @@ -392,6 +392,14 @@ pub inline fn spinLoopHint() void { .hexagon, => asm volatile ("pause(#1)"), + .mips, + .mipsel, + .mips64, + .mips64el, + => if (comptime builtin.cpu.has(.mips, .mips32r2)) { + asm volatile ("pause"); + }, + .riscv32, .riscv32be, .riscv64,