diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-04-08 22:28:30 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-04-08 22:28:30 +0200 |
commit | 24b299597ae27d45826e594fa2dba345754f7016 (patch) | |
tree | 393fa4377b8c8ffd271d57e3f4eea0b7d739152c /scripts | |
parent | df25ba583157ecce05353b53fde4b02876d170f9 (diff) | |
download | picorv32-24b299597ae27d45826e594fa2dba345754f7016.tar.gz picorv32-24b299597ae27d45826e594fa2dba345754f7016.zip |
Use RV32IC in scripts/torture/
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/torture/Makefile | 2 | ||||
-rw-r--r-- | scripts/torture/test.sh | 2 | ||||
-rw-r--r-- | scripts/torture/testbench.v | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/scripts/torture/Makefile b/scripts/torture/Makefile index 42a927e..6fb3bcd 100644 --- a/scripts/torture/Makefile +++ b/scripts/torture/Makefile @@ -41,7 +41,7 @@ tests/test_$(1).S: tests/generated.ok mv riscv-torture/output/test_$(1).S tests/ tests/test_$(1).elf: tests/test_$(1).S - riscv32-unknown-elf-gcc -m32 -ffreestanding -nostdlib -Wl,-Bstatic,-T,sections.lds -I. -o tests/test_$(1).elf tests/test_$(1).S + riscv32-unknown-elf-gcc -m32 -march=RV32IC -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 riscv32-unknown-elf-objcopy -O binary tests/test_$(1).elf tests/test_$(1).bin diff --git a/scripts/torture/test.sh b/scripts/torture/test.sh index 3b3e5c2..c385616 100644 --- a/scripts/torture/test.sh +++ b/scripts/torture/test.sh @@ -15,7 +15,7 @@ fi ## Compile test case and create reference -riscv32-unknown-elf-gcc -m32 -ffreestanding -nostdlib -Wl,-Bstatic,-T,sections.lds -o test.elf test.S +riscv32-unknown-elf-gcc -m32 -march=RV32IC -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 diff --git a/scripts/torture/testbench.v b/scripts/torture/testbench.v index abc3027..d55d9c1 100644 --- a/scripts/torture/testbench.v +++ b/scripts/torture/testbench.v @@ -19,6 +19,7 @@ module testbench ( reg [31:0] mem_rdata; picorv32 #( + .COMPRESSED_ISA(1) ) uut ( .clk (clk ), .resetn (resetn ), |