Skip to content

Commit

Permalink
Add Snrmni CSR and field definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
aswaterman committed Mar 16, 2023
1 parent ed68c21 commit da605c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,10 @@
(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'),
Expand Down
4 changes: 4 additions & 0 deletions encoding.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit da605c8

Please sign in to comment.