hideleg
riscv_unified_db)RV32 / RV64 (Ratified & Standard Extensions)
main
SHSummary
Register hideleg is an HSXLEN-bit read/write register. By default, all traps at any privilege level are handled in M-mode, though M-mode usually uses the medeleg and mideleg CSRs to delegate some traps to HS-mode. The hedeleg and hideleg CSRs allow these traps to be further delegated to a VS-mode guest; their layout is the same as medeleg and mideleg. An interrupt that has been delegated to HS-mode (using mideleg)…
Syntax / Encoding
CSR 0x603 (S-mode, RW)
Bitfields (8)
| Bits | Field | Description |
|---|---|---|
13 | LCOFI | Local-Counter-Overfloat Interrupt |
12 | SGEI | Supervisor Guest External Interrupt |
10 | VSEI | Virtual Supervisor External Interrupt |
9 | SEI | Supervisor External Interrupt |
6 | VSTI | Virtual Supervisor Timer Interrupt |
5 | STI | Supervisor Timer Interrupt |
2 | VSSI | Virtual Supervisor Software Interrupt |
1 | SSI | Supervisor Software Interrupt |
Reference Notes
Register hideleg is an HSXLEN-bit read/write register. By default, all traps at any privilege level are handled in M-mode, though M-mode usually uses the medeleg and mideleg CSRs to delegate some traps to HS-mode. The hedeleg and hideleg CSRs allow these traps to be further delegated to a VS-mode guest; their layout is the same as medeleg and mideleg. An interrupt that has been delegated to HS-mode (using mideleg) is further delegated to VS-mode if the corresponding hideleg bit is set. Among bits 15:0 of hideleg, bits 10, 6, and 2 (corresponding to the standard VS-level interrupts) are writable, and bits 12, 9, 5, and 1 (corresponding to the standard S-level interrupts) are read-only zeros.