diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-04-03 22:16:00 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-04-03 22:16:00 -0700 |
commit | 74fa7fbd09701e8a63b616cd9a8f78c23a43cbb3 (patch) | |
tree | c35cfa81fdecb1abf12f20fa9e23c8773838c8fb /isa/rv32si | |
parent | 7b8a00a3fba965bf8d0e332cd6f274503289fa2f (diff) | |
download | riscv-tests-74fa7fbd09701e8a63b616cd9a8f78c23a43cbb3.zip riscv-tests-74fa7fbd09701e8a63b616cd9a8f78c23a43cbb3.tar.gz riscv-tests-74fa7fbd09701e8a63b616cd9a8f78c23a43cbb3.tar.bz2 |
Run RV32 tests on spike with --isa=RV32
Diffstat (limited to 'isa/rv32si')
-rw-r--r-- | isa/rv32si/Makefrag | 2 | ||||
-rw-r--r-- | isa/rv32si/shamt.S | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/isa/rv32si/Makefrag b/isa/rv32si/Makefrag index e03819f..4d8f33e 100644 --- a/isa/rv32si/Makefrag +++ b/isa/rv32si/Makefrag @@ -13,3 +13,5 @@ rv32si_sc_tests = \ timer \ rv32si_p_tests = $(addprefix rv32si-p-, $(rv32si_sc_tests)) + +spike32_tests += $(rv32si_p_tests) diff --git a/isa/rv32si/shamt.S b/isa/rv32si/shamt.S index 4fe7c2f..615ef68 100644 --- a/isa/rv32si/shamt.S +++ b/isa/rv32si/shamt.S @@ -13,7 +13,7 @@ RVTEST_RV32S RVTEST_CODE_BEGIN - la t0, stvec + la t0, stvec_handler csrw stvec, t0 # Make sure slli with shamt[4] set is legal. @@ -24,7 +24,7 @@ RVTEST_CODE_BEGIN TEST_PASSFAIL -stvec: +stvec_handler: # Trapping on test 3 is good. # Note that since the test didn't complete, TESTNUM is smaller by 1. li t0, 2 |