ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

vscause

T1 riscv register register
Virtual Supervisor Cause
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRISC-V Privileged (H)
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
PrivilegeVS
ExtensionsH

Summary

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

Syntax / Encoding

CSR 0x242 (VS-mode, RW)

Bitfields (2)

BitsFieldDescription
63INTWritten 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. [when,"TRAP_ON_ILLEGAL_WLRL == true"] If vscause is written with an undefined cause (combination of vscause.INT and vscause.CODE), an Illegal Instruction exception occ
62:0CODEWritten 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. [when,"TRAP_ON_ILLEGAL_WLRL == true"] If vscause is written with an undefined cause (combination of vscause.INT and vscause.CODE), an Illegal Instruction exception occurs.