This chapter describes the operation of SiFive debug hardware, which follows
The RISC‑V
Debug Specification 0.13
. Currently only interactive debug and hardware breakpoints are sup-
ported.
This section describes the per-hart trace and debug registers (TDRs), which are mapped into
the CSR space as follows:
Table 98:
Debug Control and Status Registers
CSR Name
Description
Allowed Access Modes
tselect
Trace and debug register select
D, M
tdata1
First field of selected TDR
D, M
tdata2
Second field of selected TDR
D, M
tdata3
Third field of selected TDR
D, M
dcsr
Debug control and status register
D
dpc
Debug PC
D
dscratch
Debug scratch register
D
The
dcsr
,
dpc
, and
dscratch
registers are only accessible in debug mode, while the
tselect
and
tdata1-3
registers are accessible from either debug mode or machine mode.
FE310-G003 Manual
© SiFive, Inc.
Page 110
Содержание FE310-G003
Страница 1: ...SiFive FE310 G003 Manual v1p1 SiFive Inc ...