← Home

scause

Supervisor Cause

Address: 0x142 (322) · Privilege: S · Length: SXLEN · Writable · Defined by: S

Reports the cause of the latest exception.

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 S-mode. When set, the last exception was caused by an asynchronous Interrupt. `scause.INT` is writable. If `scause` is written with an undefined cause (combination of `scause.INT` and `scause.CODE`), an `Illegal Instruction` exception occurs. If `scause` is written with an undefined cause (combination of `scause.INT` and `scause.CODE`), neither `scause.INT` nor `scause.CODE` are modified.RW-RHUNDEFINED_LEGAL
RV32 [30:0]
RV64 [62:0]
CODEWritten by hardware when a trap is taken into S-mode. Holds the interrupt or exception code for the last taken trap. `scause.CODE` is writable. If `scause` is written with an undefined cause (combination of `scause.INT` and `scause.CODE`), an `Illegal Instruction` exception occurs. If `scause` is written with an undefined cause (combination of `scause.INT` and `scause.CODE`), neither `scause.INT` nor `scause.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.