aboutsummaryrefslogtreecommitdiff
path: root/examples/hifive1/.cargo
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hifive1/.cargo')
-rw-r--r--examples/hifive1/.cargo/config.toml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/hifive1/.cargo/config.toml b/examples/hifive1/.cargo/config.toml
index 2ce90b2..ab912d0 100644
--- a/examples/hifive1/.cargo/config.toml
+++ b/examples/hifive1/.cargo/config.toml
@@ -3,9 +3,9 @@ runner = "qemu-system-riscv32 -machine sifive_e,revb=true -nographic -semihostin
# runner = "riscv64-unknown-elf-gdb -q -x gdb_init"
rustflags = [
"-C", "link-arg=-Thifive1-link.x",
+ "--cfg", "portable_atomic_target_feature=\"zaamo\"",
]
[build]
# Pick ONE of these compilation targets
-# target = "riscv32imc-unknown-none-elf" # non-atomic support
-target = "riscv32imac-unknown-none-elf" # atomic support (partial)
+target = "riscv32imc-unknown-none-elf"