← Home

vsip

Virtual Supervisor Interrupt Pending

Address: 0x244 (580) · Privilege: VS · Length: VSXLEN · Writable · Defined by: H · Virtual address: 324

The `vsip` register is a VSXLEN-bit read/write register that is VS-mode’s version of the `sip` CSR. When V=1, instructions that normally access `sip` instead access `vsip`. It holds the pending interrupt status for supervisor-level traps in a virtualized environment.

However, interrupts directed to HS-level continue to be indicated in the HS-level `sip` register, not in `vsip`, when V=1.

The standard portion (bits 15:0) includes individual interrupt-pending bits.

Fields

RV32

31:2423:1615:87:0
—LCOFIP—SEIP—STIP—SSIP—

RV64

63:5655:4847:4039:3231:2423:1615:87:0
—LCOFIP—SEIP—STIP—SSIP—
BitsFieldAliasDescriptionTypeReset
[1]SSIP*Supervisor Software Interrupt Pending* Indicates a pending software interrupt at the supervisor level. Read-only zero when `hideleg.VSSI == 0`, else aliased to `hip.VSSIP`.RW-HUNDEFINED_LEGAL
[5]STIP*Supervisor Timer Interrupt Pending* Indicates a pending timer interrupt at the supervisor level. Read-only zero when `hideleg.VSTI == 0`, else aliased to `hip.VSTIP`.RW-HUNDEFINED_LEGAL
[9]SEIP*Supervisor External Interrupt Pending* Indicates a pending external interrupt at the supervisor level. Read-only zero when `hideleg.VSEI == 0`, else aliased to `hip.VSEIP`.RW-HUNDEFINED_LEGAL
[13]LCOFIP*Local Counter Overflow Interrupt Pending* Indicates an overflow of a local counter. Read-only zero when `hideleg.LCOFI == 0`, else aliased to `sip.LCOFIP`.RW-HUNDEFINED_LEGAL

Software read

XReg result = 0;
if (CSR[hideleg].VSSI == 1) {
  result[1] = CSR[hip].VSSIP;
}
if (CSR[hideleg].VSTI == 1) {
  result[5] = CSR[hip].VSTIP;
}
if (CSR[hideleg].VSEI == 1) {
  result[9] = CSR[hip].VSEIP;
}
if (implemented?(ExtensionName::Sscofpmf)) {
  if (CSR[hideleg].LCOFI == 1) {
    result[13] = CSR[sip].LCOFIP;
  }
}
return result;

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.