aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--constants.py4
-rw-r--r--encoding.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/constants.py b/constants.py
index b211c48..1594677 100644
--- a/constants.py
+++ b/constants.py
@@ -468,6 +468,10 @@ csrs32 = [
(0x73D, 'mhpmevent29h'), # Sscofpmf
(0x73E, 'mhpmevent30h'), # Sscofpmf
(0x73F, 'mhpmevent31h'), # Sscofpmf
+ (0x740, 'mnscratch'), # Smrnmi
+ (0x741, 'mnepc'), # Smrnmi
+ (0x742, 'mncause'), # Smrnmi
+ (0x744, 'mnstatus'), # Smrnmi
(0x757, 'mseccfgh'),
(0xB80, 'mcycleh'),
(0xB82, 'minstreth'),
diff --git a/encoding.h b/encoding.h
index 1a75b4f..d2dc4c2 100644
--- a/encoding.h
+++ b/encoding.h
@@ -63,6 +63,10 @@
#define USTATUS_UIE 0x00000001
#define USTATUS_UPIE 0x00000010
+#define MNSTATUS_NMIE 0x00000008
+#define MNSTATUS_MNPP 0x00001800
+#define MNSTATUS_MNPV 0x00000080
+
#define DCSR_XDEBUGVER (3U<<30)
#define DCSR_NDRESET (1<<29)
#define DCSR_FULLRESET (1<<28)