Skip to content

Commit 9602e3a

Browse files
Timmmmbillmcspadden-riscv
authored andcommitted
Add m/senvcfg to CSR name map
These were missed when those CSRs were implemented.
1 parent 2eb3e3d commit 9602e3a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

model/riscv_csr_map.sail

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ mapping clause csr_name_map = 0x143 <-> "stval"
5151
mapping clause csr_name_map = 0x144 <-> "sip"
5252
/* supervisor protection and translation */
5353
mapping clause csr_name_map = 0x180 <-> "satp"
54+
/* supervisor envcfg */
55+
mapping clause csr_name_map = 0x10A <-> "senvcfg"
5456
/* machine information registers */
5557
mapping clause csr_name_map = 0xF11 <-> "mvendorid"
5658
mapping clause csr_name_map = 0xF12 <-> "marchid"
@@ -65,6 +67,8 @@ mapping clause csr_name_map = 0x304 <-> "mie"
6567
mapping clause csr_name_map = 0x305 <-> "mtvec"
6668
mapping clause csr_name_map = 0x306 <-> "mcounteren"
6769
mapping clause csr_name_map = 0x320 <-> "mcountinhibit"
70+
/* machine envcfg */
71+
mapping clause csr_name_map = 0x30A <-> "menvcfg"
6872
/* machine trap handling */
6973
mapping clause csr_name_map = 0x340 <-> "mscratch"
7074
mapping clause csr_name_map = 0x341 <-> "mepc"

0 commit comments

Comments
 (0)