Webcentive RISC-V Reference

vscause

Virtual supervisor trap cause

Address
0x242
Group
Hypervisor and VS CSRs
Privilege
HRW (privileged spec CSR listing, Virtual Supervisor Registers)
Access
read/write; lowest privilege H (hypervisor, including VS CSRs)
Address range
Standard read/write
Name in riscv-unified-db
Virtual Supervisor Cause

Privileged spec: Virtual supervisor trap cause

Description

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

From riscv-unified-db, reformatted.

Fields

FieldBitsTypeDescription
INTRV32 31 / RV64 63RW-RH

Written 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.

CODERV32 30-0 / RV64 62-0RW-RH

Fields from riscv-unified-db; field types computed by IDL functions there are not shown.

Specification and related pages