From 24b299597ae27d45826e594fa2dba345754f7016 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Fri, 8 Apr 2016 22:28:30 +0200 Subject: [PATCH] Use RV32IC in scripts/torture/ --- scripts/torture/Makefile | 2 +- scripts/torture/test.sh | 2 +- 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 ),