Webcentive RISC-V Reference

sepc

Supervisor exception program counter

Address
0x141
Group
Supervisor-level CSRs
Privilege
SRW (privileged spec CSR listing, Supervisor Trap Handling)
Access
read/write; lowest privilege S (supervisor)
Address range
Standard read/write
Name in riscv-unified-db
Supervisor Exception Program Counter

Privileged spec: Supervisor exception program counter

Description

Written with the PC of an instruction on an exception or interrupt taken in (H)S-mode.

Also controls where the hart jumps on an exception return from (H)S-mode.

From riscv-unified-db, reformatted.

Fields

FieldBitsTypeDescription
PCRV32 31-0 / RV64 63-0RW-RH

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

Specification and related pages