aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2017-07-10 11:52:10 +0200
committerClifford Wolf <clifford@clifford.at>2017-07-10 11:52:10 +0200
commit2bc93eb8d048f855ffccde23eff583e98430e209 (patch)
treec19f36aec68d56b23a4e78efa47824ee8eb6cb53 /scripts
parentc9de8001fe8ca4d4af260b3aef378805759e3583 (diff)
downloadpicorv32-2bc93eb8d048f855ffccde23eff583e98430e209.tar.gz
picorv32-2bc93eb8d048f855ffccde23eff583e98430e209.zip
Fix scripts/torture gcc calls
Diffstat (limited to 'scripts')
-rw-r--r--scripts/torture/Makefile2
-rw-r--r--scripts/torture/test.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/torture/Makefile b/scripts/torture/Makefile
index 17b838e..4dd075c 100644
--- a/scripts/torture/Makefile
+++ b/scripts/torture/Makefile
@@ -58,7 +58,7 @@ tests/test_$(1).S: tests/generated.ok
touch tests/test_$(1).S
tests/test_$(1).elf: tests/test_$(1).S
- riscv32-unknown-elf-gcc -m32 `sed '/march=/ ! d; s,^// ,-,;' config.vh` -ffreestanding -nostdlib \
+ riscv32-unknown-elf-gcc `sed '/march=/ ! d; s,^// ,-,; y/RVIMC/rvimc/;' config.vh` -ffreestanding -nostdlib \
-Wl,-Bstatic,-T,sections.lds -I. -o tests/test_$(1).elf tests/test_$(1).S
tests/test_$(1).bin: tests/test_$(1).elf
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