From 4090f4eb24f9f0ee29353dbcbf82e28fe0aa8d8f Mon Sep 17 00:00:00 2001 From: Luke Wren Date: Sat, 28 May 2022 15:01:27 +0100 Subject: [PATCH] Initial bringup of riscv-tests. Pass 63 out of 66 applicable tests.gstat --- test/sim/riscv-tests/riscv-tests | 2 +- test/sim/riscv-tests/run-isa-tests.sh | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 test/sim/riscv-tests/run-isa-tests.sh diff --git a/test/sim/riscv-tests/riscv-tests b/test/sim/riscv-tests/riscv-tests index 6155fb3..0c35c37 160000 --- a/test/sim/riscv-tests/riscv-tests +++ b/test/sim/riscv-tests/riscv-tests @@ -1 +1 @@ -Subproject commit 6155fb3c4a889cb028b6fe219fbe8b66e43425dd +Subproject commit 0c35c3705973deb37a528e9a4df24c1c3192ce1c diff --git a/test/sim/riscv-tests/run-isa-tests.sh b/test/sim/riscv-tests/run-isa-tests.sh new file mode 100644 index 0000000..9a793d4 --- /dev/null +++ b/test/sim/riscv-tests/run-isa-tests.sh @@ -0,0 +1,11 @@ +set -e + +make -C ../tb_cxxrtl tb +cd riscv-tests/isa +make XLEN=32 clean + +# Note SKIP_V is something I added to their Makefile. We have no need for the +# virtual memory test machine configuration. +make -j$(nproc) XLEN=32 SKIP_V=1 rv32ui rv32uc rv32um rv32ua rv32mi + +for test in $(find -name "*-p-*.bin"); do echo $test; ../../../tb_cxxrtl/tb --bin $test --cycles 10000; done \ No newline at end of file