RISC-V ISA Explorer · Traps

Sdext: External Debug

Ratified 2025-02 · version 1.0.0

Hart-side half of external debug: Debug Mode entry, halt and resume, and the dcsr and dpc registers.

Typical use: Attaching an external debugger

Specification

Open Sdext in the explorer

Instructions (1)

MnemonicNameEncodingMatchMask
DRETReturn from Debug Mode011110110010000000000000011100110x7b2000730xffffffff

Control and status registers (4)

NameAddressModeDescription
dcsr0x7b0DDebug Control and Status Register
dpc0x7b1DDebug PC Register
dscratch00x7b2DDebug scratch register
dscratch10x7b3DDebug scratch register