From 5fe6092f9917d80f4d1bfd02ce36275a87c89910 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Sat, 21 Mar 2020 15:43:01 -0700 Subject: [PATCH] Fix regression introduced by 24d7d6b68c5581c36cbdef354b1882a7a8dd52c5 --- isa/rv64si/csr.S | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/isa/rv64si/csr.S b/isa/rv64si/csr.S index ac7750dcf..09494ef6d 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: