aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/torture/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/torture/test.sh')
-rw-r--r--scripts/torture/test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/torture/test.sh b/scripts/torture/test.sh
index eae1b75..17c5a7c 100644
--- a/scripts/torture/test.sh
+++ b/scripts/torture/test.sh
@@ -19,7 +19,7 @@ fi
## Compile test case and create reference
-riscv32-unknown-elf-gcc -m32 `sed '/march=/ ! d; s,^// ,-,;' config.vh` -ffreestanding -nostdlib -Wl,-Bstatic,-T,sections.lds -o test.elf test.S
+riscv32-unknown-elf-gcc `sed '/march=/ ! d; s,^// ,-,; y/RVIMC/rvimc/;' config.vh` -ffreestanding -nostdlib -Wl,-Bstatic,-T,sections.lds -o test.elf test.S
LD_LIBRARY_PATH="./riscv-isa-sim:./riscv-fesvr" ./riscv-isa-sim/spike test.elf > test.ref
riscv32-unknown-elf-objcopy -O binary test.elf test.bin
python3 ../../firmware/makehex.py test.bin 4096 > test.hex