RISC-V ISA Explorer · Traps

Sdtrig: Debug Triggers

Ratified 2025-02 · version 1.0.0

Hardware breakpoints and watchpoints that fire on instruction or load/store addresses without patching code.

Typical use: Breakpoints and watchpoints

Specification

Open Sdtrig in the explorer

Instructions

No instruction encodings are listed for this extension in the catalogue.

Control and status registers (12)

NameAddressModeDescription
hcontext0x6a8SHypervisor Context
hstateen00x60cSHypervisor State Enable 0 Register
hstateen0h0x61cSUpper 32 bits of Hypervisor State Enable 0 Register
mcontext0x7a8MMachine Context
mscontext0x7aaSMachine Supervisor Context
mstateen00x30cMMachine State Enable 0 Register
mstateen0h0x31cMUpper 32 bits of Machine State Enable 0 Register
scontext0x5a8SSupervisor Context
tdata10x7a1MTrigger Data 1
tdata20x7a2MTrigger Data 2
tdata30x7a3MTrigger Data 3
tselect0x7a0MTrigger Select