blob: 4b2618d9b53f9786b7c3ec05c95d8f28b5450e76 [file] [log] [blame] [edit]
From 02e52b6c7e3d35999a6e9bb74d7ee4929d0d1b98 Mon Sep 17 00:00:00 2001
From: Naveen Dodda <ndodda@google.com>
Date: Thu, 5 Sep 2024 00:35:43 +0000
Subject: [PATCH 1/2] mcsr
---
isa/rv64mi/mcsr.S | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/isa/rv64mi/mcsr.S b/isa/rv64mi/mcsr.S
index 03cf29a..729889f 100644
--- a/isa/rv64mi/mcsr.S
+++ b/isa/rv64mi/mcsr.S
@@ -21,7 +21,11 @@ RVTEST_CODE_BEGIN
#endif
# Check that mhartid reports 0
- TEST_CASE(3, a0, 0x0, csrr a0, mhartid)
+ # TEST_CASE(3, a0, 0x0, csrr a0, mhartid)
+ # For Kelvin, just check that the CSR doosen't cause an exception.
+ # Depending on how the core is instantiated, this may have
+ # differing values.
+ csrr a0, mhartid
# Check that reading the following CSRs doesn't cause an exception
csrr a0, mimpid
--
2.46.0.469.g59c65b2a67-goog