Webcentive RISC-V Reference

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

FieldBitsTypeDescription
SSI1ROSupervisor Software Interrupt.

Supervisor Software Interrupt

VSSI2RWVirtual Supervisor Software Interrupt.

Virtual Supervisor Software Interrupt

STI5ROSupervisor Timer Interrupt.

Supervisor Timer Interrupt

VSTI6RWVirtual Supervisor Timer Interrupt.

Virtual Supervisor Timer Interrupt

SEI9ROSupervisor External Interrupt.

Supervisor External Interrupt

VSEI10RWVirtual Supervisor External Interrupt.

Virtual Supervisor External Interrupt

SGEI12ROSupervisor Guest External Interrupt.

Supervisor Guest External Interrupt

LCOFI13Local-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