← Home

hideleg

Hypervisor Interrupt Delegation Register

Address: 0x603 (1539) · Privilege: S · Length: SXLEN · Writable · Defined by: H

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.

Fields

RV32

31:2423:1615:87:0
—LCOFISGEI—VSEISEI—VSTISTI—VSSISSI—

RV64

63:5655:4847:4039:3231:2423:1615:87:0
—LCOFISGEI—VSEISEI—VSTISTI—VSSISSI—
BitsFieldAliasDescriptionTypeReset
[1]SSISupervisor Software InterruptRO0
[2]VSSIVirtual Supervisor Software InterruptRWUNDEFINED_LEGAL
[5]STISupervisor Timer InterruptRO0
[6]VSTIVirtual Supervisor Timer InterruptRWUNDEFINED_LEGAL
[9]SEISupervisor External InterruptRO0
[10]VSEIVirtual Supervisor External InterruptRWUNDEFINED_LEGAL
[12]SGEISupervisor Guest External InterruptRO0
[13]LCOFILocal-Counter-Overfloat Interrupt
return implemented?(ExtensionName::Shlcofideleg) ? CsrFieldType::RW : CsrFieldType::RO;
return implemented?(ExtensionName::Shlcofideleg) ? UNDEFINED_LEGAL : 0;

Software read

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.