authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-12 04:21:51+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-08-12 14:36:21-07:00
log87ec4e11c91d83e0930ceab5b8e6c17b3f157dd9
treefc2fd4781bcaf17f27dabddb9b9bf00b07851f5b
parentf7fb261efd857ce3d5c926f017401df79cf9ef51

compiler-rt: Fix the leoncasa CPU feature check for sparc32.


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

lib/compiler_rt/atomics.zig+1-1
......@@ -30,7 +30,7 @@ const largest_atomic_size = switch (arch) {
3030 // On SPARC systems that lacks CAS and/or swap instructions, the only
3131 // available atomic operation is a test-and-set (`ldstub`), so we force
3232 // every atomic memory access to go through the lock.
33 .sparc => if (cpu.features.featureSetHas(.hasleoncasa)) @sizeOf(usize) else 0,
33 .sparc => if (std.Target.sparc.featureSetHas(builtin.cpu.features, .hasleoncasa)) @sizeOf(usize) else 0,
3434
3535 // XXX: On x86/x86_64 we could check the presence of cmpxchg8b/cmpxchg16b
3636 // and set this parameter accordingly.