aboutsummaryrefslogtreecommitdiff
path: root/isa/rv64mi/mcsr.S
diff options
context:
space:
mode:
Diffstat (limited to 'isa/rv64mi/mcsr.S')
-rw-r--r--isa/rv64mi/mcsr.S8
1 files changed, 5 insertions, 3 deletions
diff --git a/isa/rv64mi/mcsr.S b/isa/rv64mi/mcsr.S
index c1e2cd3..8a451ca 100644
--- a/isa/rv64mi/mcsr.S
+++ b/isa/rv64mi/mcsr.S
@@ -14,13 +14,15 @@ RVTEST_RV64M
RVTEST_CODE_BEGIN
# Check that mcpuid reports RV64
- TEST_CASE(2, a0, 0x2, csrr a0, mcpuid; srl a0, a0, 62)
+ TEST_CASE(2, a0, 0x2, csrr a0, misa; srl a0, a0, 62)
# Check that mhartid reports 0
TEST_CASE(3, a0, 0x0, csrr a0, mhartid)
- # Check that mimpid reports UC Berkeley
- TEST_CASE(4, a0, 0x1, csrr a0, mimpid; sll a0, a0, 48; srl a0, a0, 48)
+ # Check that reading mimpid, marchid, and mvendorid doesn't cause exceptions
+ csrr a0, mimpid
+ csrr a0, marchid
+ csrr a0, mvendorid
# Check that mtvec reports DEFAULT_MTVEC
TEST_CASE(5, a0, DEFAULT_MTVEC, csrr a0, mtvec)