From 183e73904a5d14e29f8a7edbb2d9553dddb736af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rom=C3=A1n=20C=C3=A1rdenas=20Rodr=C3=ADguez?= Date: Wed, 23 Oct 2024 18:50:12 +0200 Subject: Prepare for new riscv ecosystem --- examples/hifive1/.cargo/config.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/hifive1/.cargo') 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" -- cgit v1.2.3