| ... | @@ -75,7 +75,7 @@ pub fn spinLoopHint() callconv(.Inline) void { | ... | @@ -75,7 +75,7 @@ pub fn spinLoopHint() callconv(.Inline) void { |
| 75 | }, | 75 | }, |
| 76 | .arm, .armeb, .thumb, .thumbeb => { | 76 | .arm, .armeb, .thumb, .thumbeb => { |
| 77 | // `yield` was introduced in v6k but are also available on v6m. | 77 | // `yield` was introduced in v6k but are also available on v6m. |
| 78 | const can_yield = comptime std.Target.arm.featureSetHas(std.Target.current.cpu.features, .has_v6m); | 78 | const can_yield = comptime std.Target.arm.featureSetHasAny(std.Target.current.cpu.features, .{ .has_v6k, .has_v6m }); |
| 79 | if (can_yield) asm volatile ("yield" ::: "memory"); | 79 | if (can_yield) asm volatile ("yield" ::: "memory"); |
| 80 | }, | 80 | }, |
| 81 | .aarch64, .aarch64_be, .aarch64_32 => { | 81 | .aarch64, .aarch64_be, .aarch64_32 => { |