74K™ core features for debug and profiling
109
Programming the MIPS32® 74K™ Core Family, Revision 02.14
Figure 8.4 Fields in the memory-mapped DCR (debug control) register
Where:
ENM
: (read only) reports CPU endianness (1 == big).
FDCImpl
: (read only) 1 if the Fast Debug Channel is available. See
Section 8.1.10 “Fast Debug Channel”
DB/IB
: (read only) 1 if data/instruction hardware breakpoints are available, respectively. The 74K core has either 0 or 2
data breakpoints, and either 0 or 4 instruction breakpoints.
IVM:
(read-only) tells you if an inverted data value match on data hardware breakpoints is implemented.
DVM
: (read-only) tells you if a data value store on a data value breakpoint match is implemented.
RdVec
: If set, use the address specified in
DebugVectorAddr
register for debug exceptions instead of the default ROM
address. If the probe is handling debug exceptions, it will continue to take precedence over this.
CBT
: (read-only) tells you if a complex breakpoint block is implemented.
PCS, PCR
:
PCS, PCSE,PCIM,PCnoASID: PCS
reads 1 if the PC sampling feature is available, as it can be on the 74K
core. Then
PCSE
enables PC sampling and
PCR
is a three-bit field defining the sampling frequency as one sample
every 2
(5+
PCR
) cycles.
PCnoASID
indicates or controls whether the ASID field is included in the sample.
PCIM
, if set-
table, enables only sampling the PC of instructions that missed in the instruction cache. See
DAS, DASQ, DASE: DAS
reads 1 if the Data Address Sampling feature is available. If supported, this feature builds on
top of the PC sampling mechanisms to sample data addresses.
DASE
enables DAsampling and is not mutually exclu-
sive with
PCSE
.
DASQ
limits the data address samples to those addresses that match on data breakpoint 0.
INTE/NMIE
: set
DCR[INTE]
zero to disable interrupts in non-debug mode (it’s a separate bit from the various non-debug-
mode visible interrupt enables). The idea is that the debugger might want to step through kernel code or run kernel
subroutines (perhaps to discover OS-related information) without losing control because interrupts start up again.
DCR[NMIE]
masks non-maskable interrupt in non-debug mode (a nice paradox). Both bits are "1" from reset.
NMIP
: (read-only) tells you that a non-maskable interrupt is pending, and will happen when you leave debug mode (and
according to
DCR[NMIE]
as above).
SRE
: if implemented, write zero to mask soft-reset causes. This signal has no effect inside the 74K core but is presented
at the interface, where customer reset logic could be influenced by it.
PE
: (read only) software-readable version of the probe-controlled enable bit
EJTAG_CONTROL[ProbEn]
, which you
could look at in
.
31
30
29
28
27
26
25
24
23
22
21
19
18
17
16
Res
ENM
Res
PCIM
PCno
ASID
DASQ DASe DAS
FDCI
mpl
DB
IB
15
14
13
12
11
10
9
8
6
5
4
3
2
1
0
IVM
DVM
0
RDVec
CBT
PCS
PCR
PCSE INTE NMIE NMIP SRE
PE
Summary of Contents for MIPS32 74K Series
Page 1: ...Document Number MD00541 Revision 02 14 March 30 2011 Programming the MIPS32 74K Core Family...
Page 10: ...Programming the MIPS32 74K Core Family Revision 02 14 10...
Page 54: ...3 8 The TLB and translation Programming the MIPS32 74K Core Family Revision 02 14 54...
Page 83: ......
Page 101: ...The MIPS32 DSP ASE 101 Programming the MIPS32 74K Core Family Revision 02 14...
Page 134: ...8 4 Performance counters Programming the MIPS32 74K Core Family Revision 02 14 134...