Skip to content

Commit 607c543

Browse files
committed
Enable RISC-V atomic compare and swap
1 parent 74ff7dc commit 607c543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_target/spec/riscv32imac_unknown_none_elf.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub fn target() -> TargetResult {
2828
linker: Some("rust-lld".to_string()),
2929
cpu: "generic-rv32".to_string(),
3030
max_atomic_width: Some(32),
31-
atomic_cas: false, // incomplete +a extension
31+
atomic_cas: true,
3232
features: "+m,+a,+c".to_string(),
3333
executables: true,
3434
panic_strategy: PanicStrategy::Abort,

0 commit comments

Comments
 (0)