← Home

vscause

Virtual Supervisor Cause

Address: 0x242 (578) · Privilege: VS · Length: VSXLEN · Writable · Defined by: H · Virtual address: 322

Reports the cause of the latest exception taken in VS-mode.

Fields

RV32

31:2423:1615:87:0
INTCODE

RV64

63:5655:4847:4039:3231:2423:1615:87:0
INTCODE
BitsFieldAliasDescriptionTypeReset
RV32 [31]
RV64 [63]
INTWritten by hardware when a trap is taken into VS-mode. When set, the last exception was caused by an asynchronous Interrupt. `vscause.INT` is writable. If `vscause` is written with an undefined cause (combination of `vscause.INT` and `vscause.CODE`), an `Illegal Instruction` exception occurs. If `vscause` is written with an undefined cause (combination of `vscause.INT` and `vscause.CODE`), neither `vscause.INT` nor `vscause.CODE` are modified.RW-RHUNDEFINED_LEGAL
RV32 [30:0]
RV64 [62:0]
CODEWritten by hardware when a trap is taken into VS-mode. Holds the interrupt or exception code for the last taken trap. `vscause.CODE` is writable. If `vscause` is written with an undefined cause (combination of `vscause.INT` and `vscause.CODE`), an `Illegal Instruction` exception occurs. If `vscause` is written with an undefined cause (combination of `vscause.INT` and `vscause.CODE`), neither `vscause.INT` nor `vscause.CODE` are modified. Valid interrupt codes are: ! ! Valid exception codes are: ! ! RW-RHUNDEFINED_LEGAL

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.