Webcentive RISC-V Reference

vstvec

Virtual supervisor trap handler base address

Address
0x205
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 Trap Vector

Privileged spec: Virtual supervisor trap handler base address

Description

Controls where traps jump.

From riscv-unified-db, reformatted.

Fields

FieldBitsTypeDescription
BASERV32 31-2 / RV64 63-2RW-R
MODE1-0

Vectoring mode for asynchronous interrupts taken into VS-mode.

0 - Direct, 1 - Vectored

When Direct, all synchronous exceptions and asynchronous interrupts jump to (vstvec.BASE << 2).

When Vectored, asynchronous interrupts jump to (vstvec.BASE << 2 + vscause.CODE*4) while synchronous exceptions continue to jump to (vstvec.BASE << 2).

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

Specification and related pages