mie
Machine interrupt-enable register
- Address
0x304- Group
- Machine-level CSRs
- Privilege
MRW(privileged spec CSR listing, Machine Trap Setup)- Access
- read/write; lowest privilege M (machine)
- Address range
- Standard read/write
- Name in riscv-unified-db
- Machine Interrupt Enable
Privileged spec: Machine interrupt-enable register
Description
mip.yaml#/description
From riscv-unified-db, reformatted.
Fields
| Field | Bits | Type | Description |
|---|---|---|---|
SSIE | 1 | Enables Supervisor Software Interrupts. | |
VSSIE | 2 | RW | Enables Virtual Supervisor Software Interrupts. |
MSIE | 3 | Enables Machine Software Interrupts. | |
STIE | 5 | Enables Supervisor Timer Interrupts. | |
VSTIE | 6 | RW | Enables Virtual Supervisor Timer Interrupts. |
MTIE | 7 | Enables Machine Timer Interrupts. | |
SEIE | 9 | Enables Supervisor External Interrupts. | |
VSEIE | 10 | RW | Enables Virtual Supervisor External Interrupts. |
MEIE | 11 | Enables Machine External Interrupts. | |
SGEIE | 12 | RW | Enables Supervisor Guest External Interrupts |
LCOFIE | 13 | RW | Enables Local Counter Overflow Interrupts. |
Fields from riscv-unified-db; field types computed by IDL functions there are not shown.
Specification and related pages
- The RISC-V Instruction Set Manual, Volume II: CSR listing (src/priv/csrs.adoc)
- riscv-opcodes csrs.csv
- riscv-unified-db: spec/std/isa/csr/mie.yaml
- csrrw, csrrs, csrrc (Zicsr instructions that access CSRs)