Debug CSRs

(Ask a Question)

The per-Hart Trace and Debug Registers (TDRs) are listed in the following table.

Table 1. Trace and Debug CSRs
CSR Name Description Allowed Access Modes

tselect

tdata1

tdata2

tdata3

Trace and debug register select

First field of selected TDR

Second field of selected TDR

Third field of selected TDR

D, M

D, M

D, M

D, M

dcsr

dpc

dscratch

Debug control and status register

Debug PC

Debug scratch register

D

D

D

The dcsr, dpc, and dscratch registers are accessible only in the Debug mode. The tselect and tdata1–3 registers are accessible in the Debug mode or Machine mode.