Skip to content

Commit 5c67cb8

Browse files
add missing AIA CSRs (mvien, mvip, midelegh, mieh, mvienh, mviph, mtopei, miph) (#3207)
to priv/csrs.adoc from Advanced Interrupt Architecture docs at https://github.com/riscv/riscv-aia/blob/main/src/CSRs.adoc Signed-off-by: Adam Greenblatt <adam.greenblatt@gmail.com>
1 parent bf9da44 commit 5c67cb8

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/priv/csrs.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,16 @@ Note that not all registers are required on all implementations.
379379
|`0x304` |MRW |csr:mie[] |Machine interrupt-enable register
380380
|`0x305` |MRW |csr:mtvec[] |Machine trap-handler base address
381381
|`0x306` |MRW |csr:mcounteren[] |Machine counter enable
382+
|`0x308` |MRW |csr:mvien[] |Machine virtual interrupt enables
383+
|`0x309` |MRW |csr:mvip[] |Machine virtual interrupt-pending bits
382384
|`0x310` |MRW |csr:mstatush[] |Upper qty:32[bits] of csr:mstatus[], RV32 only
383385
|`0x312` |MRW |csr:medelegh[] |Upper qty:32[bits] of csr:medeleg[], RV32 only
386+
|`0x313` |MRW |csr:midelegh[] |Upper qty:32[bits] of csr:mideleg[], RV32 only
387+
|`0x314` |MRW |csr:mieh[] |Upper qty:32[bits] of csr:mie[], RV32 only
388+
|`0x318` |MRW |csr:mvienh[] |Upper qty:32[bits] of csr:mvien[], RV32 only
389+
|`0x319` |MRW |csr:mviph[] |Upper qty:32[bits] of csr:mvip[], RV32 only
390+
|`0x35C` |MRW |csr:mtopei[] |Machine top external interrupt (only with an IMSIC)
391+
|`0xFB0` |MRO |csr:mtopi[] |Machine top interrupt
384392

385393
4+^|Machine Trap Handling
386394

@@ -391,6 +399,7 @@ Note that not all registers are required on all implementations.
391399
|`0x344` |MRW |csr:mip[] |Machine interrupt pending
392400
|`0x34A` |MRW |csr:mtinst[] |Machine trap instruction (transformed)
393401
|`0x34B` |MRW |csr:mtval2[] |Machine second trap value
402+
|`0x354` |MRW |csr:miph[] |Upper qty:32[bits] of csr:mip[], RV32 only
394403

395404
4+^|Machine Indirect
396405

0 commit comments

Comments
 (0)