Hypervisor Interrupt Delegation Register
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.
| 31:24 | 23:16 | 15:8 | 7:0 | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| — | LCOFI | SGEI | — | VSEI | SEI | — | VSTI | STI | — | VSSI | SSI | — | |||||||||||||||||||
| 63:56 | 55:48 | 47:40 | 39:32 | 31:24 | 23:16 | 15:8 | 7:0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| — | LCOFI | SGEI | — | VSEI | SEI | — | VSTI | STI | — | VSSI | SSI | — | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Bits | Field | Alias | Description | Type | Reset |
|---|---|---|---|---|---|
| [1] | SSI | Supervisor Software Interrupt | RO | 0 | |
| [2] | VSSI | Virtual Supervisor Software Interrupt | RW | UNDEFINED_LEGAL | |
| [5] | STI | Supervisor Timer Interrupt | RO | 0 | |
| [6] | VSTI | Virtual Supervisor Timer Interrupt | RW | UNDEFINED_LEGAL | |
| [9] | SEI | Supervisor External Interrupt | RO | 0 | |
| [10] | VSEI | Virtual Supervisor External Interrupt | RW | UNDEFINED_LEGAL | |
| [12] | SGEI | Supervisor Guest External Interrupt | RO | 0 | |
| [13] | LCOFI | Local-Counter-Overfloat Interrupt | return implemented?(ExtensionName::Shlcofideleg) ? CsrFieldType::RW : CsrFieldType::RO; | return implemented?(ExtensionName::Shlcofideleg) ? UNDEFINED_LEGAL : 0; |
XReg mask = CSR[mideleg].VSSI | CSR[mideleg].VSTI | CSR[mideleg].VSEI | CSR[mideleg].LCOFI; return $bits(CSR[hideleg]) & mask;
Version af3eaf9+cheriot.f635218
Data from the RISC-V Unified Database, copyright RISC-V International and contributors.
CHERIoT extensions from the CHERIoT specification and Sail model, copyright Microsoft and the CHERIoT Platform contributors.
This site is provided as a community resource and is NOT affiliated with nor endorsed by RISC-V International.