diff options
author | Andrew Waterman <andrew@sifive.com> | 2020-03-21 15:43:01 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2020-03-21 15:43:01 -0700 |
commit | 5fe6092f9917d80f4d1bfd02ce36275a87c89910 (patch) | |
tree | 9a7fa327ac11766e6d7087a90611e418948f9595 /isa/rv64si/csr.S | |
parent | 8333b4f40beddae0e1a8f9e5654cc1d8304c9db5 (diff) | |
download | riscv-tests-5fe6092f9917d80f4d1bfd02ce36275a87c89910.zip riscv-tests-5fe6092f9917d80f4d1bfd02ce36275a87c89910.tar.gz riscv-tests-5fe6092f9917d80f4d1bfd02ce36275a87c89910.tar.bz2 |
Fix regression introduced by 24d7d6b68c5581c36cbdef354b1882a7a8dd52c5
Diffstat (limited to 'isa/rv64si/csr.S')
-rw-r--r-- | isa/rv64si/csr.S | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/isa/rv64si/csr.S b/isa/rv64si/csr.S index ac7750d..09494ef 100644 --- a/isa/rv64si/csr.S +++ b/isa/rv64si/csr.S @@ -77,7 +77,7 @@ RVTEST_CODE_BEGIN TEST_CASE(13, a0, 1, fsw f0, (a1); lw a0, (a1)); #else # Fail if this test is compiled without F but executed on a core with F. - TEST_CASE(14, zero, 1) + TEST_CASE(13, zero, 1) #endif 1: @@ -99,15 +99,15 @@ RVTEST_CODE_BEGIN # Make sure writing the cycle counter causes an exception. # Don't run in supervisor, as we don't delegate illegal instruction traps. #ifdef __MACHINE_MODE - TEST_CASE(15, a0, 255, li a0, 255; csrrw a0, cycle, x0); + TEST_CASE(14, a0, 255, li a0, 255; csrrw a0, cycle, x0); #endif # Make sure reading status in user mode causes an exception. # Don't run in supervisor, as we don't delegate illegal instruction traps. #ifdef __MACHINE_MODE - TEST_CASE(16, a0, 255, li a0, 255; csrr a0, sstatus) + TEST_CASE(15, a0, 255, li a0, 255; csrr a0, sstatus) #else - TEST_CASE(17, x0, 0, nop) + TEST_CASE(15, x0, 0, nop) #endif finish: @@ -119,11 +119,11 @@ finish: .align 2 .global stvec_handler stvec_handler: - # Trapping on tests 10-12 is good news. + # Trapping on tests 13-15 is good news. # Note that since the test didn't complete, TESTNUM is smaller by 1. - li t0, 9 + li t0, 12 bltu TESTNUM, t0, 1f - li t0, 11 + li t0, 14 bleu TESTNUM, t0, privileged 1: |