← Home

vsie

Virtual Supervisor Interrupt Enable

Address: 0x204 (516) · Privilege: VS · Length: VSXLEN · Writable · Defined by: H · Virtual address: 260

The vsie register is a VSXLEN-bit read/write register that is VS-mode’s version of supervisor CSR sie. When V=1, vsie substitutes for the usual sie, so instructions that normally read or modify sie actually access vsie instead. However, interrupts directed to HS-level continue to be indicated in the HS-level sip register, not in vsip, when V=1.

When bit 13 of hideleg is zero, vsie.LCOFIE is read-only zero. Else, vsie.LCOFIE is an alias of sie.LCOFIE. When bit 10 of hideleg is zero, vsie.SEIE is read-only zero. Else, vsie.SEIE is an alias of hie.VSEIE. When bit 6 of hideleg is zero, vsie.STIE is read-only zero. Else, vsie.STIE is an alias of hie.VSTIE. When bit 2 of hideleg is zero, vsie.SSIE is read-only zero. Else, vsie.SSIE is an alias of hie.VSSIE.

Fields

RV32

31:2423:1615:87:0
—LCOFIE—SEIE—STIE—SSIE—

RV64

63:5655:4847:4039:3231:2423:1615:87:0
—LCOFIE—SEIE—STIE—SSIE—
BitsFieldAliasDescriptionTypeReset
[1]SSIESSIE. Read-only zero when hideleg.VSSI is 0. Else, alias of hie.VSSIE.RW-HUNDEFINED_LEGAL
[5]STIESTIE. Read-only zero when hideleg.VSTI is 0. Else, alias of hie.VSTIE.RW-HUNDEFINED_LEGAL
[9]SEIESEIE. Read-only zero when hideleg.VSEI is 0. Else, alias of hie.VSEIE.RW-HUNDEFINED_LEGAL
[13]LCOFIELCOFIE. Read-only zero when hideleg.LCOFI is 0. Else, alias of sie.LCOFIE.RW-HUNDEFINED_LEGAL

Software read

XReg result = 0;
if (CSR[hideleg].VSSI == 1) {
  result[1] = CSR[hie].VSSIE;
}
if (CSR[hideleg].VSTI == 1) {
  result[5] = CSR[hie].VSTIE;
}
if (CSR[hideleg].VSEI == 1) {
  result[9] = CSR[hie].VSEIE;
}
if (CSR[hideleg].LCOFI == 1) {
  result[13] = CSR[sie].LCOFIE;
}
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.