hideleg
Hypervisor interrupt delegation register
- Address
0x603- Group
- Hypervisor and VS CSRs
- Privilege
HRW(privileged spec CSR listing, Hypervisor Trap Setup)- Access
- read/write; lowest privilege H (hypervisor, including VS CSRs)
- Address range
- Standard read/write
- Name in riscv-unified-db
- Hypervisor Interrupt Delegation Register
Privileged spec: Hypervisor interrupt delegation register
Description
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.
From riscv-unified-db, reformatted.
Fields
| Field | Bits | Type | Description |
|---|---|---|---|
SSI | 1 | RO | Supervisor Software Interrupt. Supervisor Software Interrupt |
VSSI | 2 | RW | Virtual Supervisor Software Interrupt. Virtual Supervisor Software Interrupt |
STI | 5 | RO | Supervisor Timer Interrupt. Supervisor Timer Interrupt |
VSTI | 6 | RW | Virtual Supervisor Timer Interrupt. Virtual Supervisor Timer Interrupt |
SEI | 9 | RO | Supervisor External Interrupt. Supervisor External Interrupt |
VSEI | 10 | RW | Virtual Supervisor External Interrupt. Virtual Supervisor External Interrupt |
SGEI | 12 | RO | Supervisor Guest External Interrupt. Supervisor Guest External Interrupt |
LCOFI | 13 | Local-Counter-Overfloat Interrupt. Local-Counter-Overfloat Interrupt |
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/H/hideleg.yaml
- csrrw, csrrs, csrrc (Zicsr instructions that access CSRs)