mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-07 14:24:43 +00:00
compiler-rt: Fix the leoncasa CPU feature check for sparc32.
This commit is contained in:
parent
f7fb261efd
commit
87ec4e11c9
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ const largest_atomic_size = switch (arch) {
|
||||||
// On SPARC systems that lacks CAS and/or swap instructions, the only
|
// On SPARC systems that lacks CAS and/or swap instructions, the only
|
||||||
// available atomic operation is a test-and-set (`ldstub`), so we force
|
// available atomic operation is a test-and-set (`ldstub`), so we force
|
||||||
// every atomic memory access to go through the lock.
|
// every atomic memory access to go through the lock.
|
||||||
.sparc => if (cpu.features.featureSetHas(.hasleoncasa)) @sizeOf(usize) else 0,
|
.sparc => if (std.Target.sparc.featureSetHas(builtin.cpu.features, .hasleoncasa)) @sizeOf(usize) else 0,
|
||||||
|
|
||||||
// XXX: On x86/x86_64 we could check the presence of cmpxchg8b/cmpxchg16b
|
// XXX: On x86/x86_64 we could check the presence of cmpxchg8b/cmpxchg16b
|
||||||
// and set this parameter accordingly.
|
// and set this parameter accordingly.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue