
8.2 PDtrace™ instruction trace facility
Programming the MIPS32® 74K™ Core Family, Revision 02.14
124
TB
: "trace all branch" - when 1, output all branch addresses in full. Normally, predictable branches need not be sent.
IO
: "inhibit overflow" - slow the CPU rather than lose trace data because you can’t capture it fast enough.
D, E, K, S, U
: do trace in various CPU modes: separate bits independently filter for debug, exception, kernel, supervisor
and user mode. Set 1 to trace.
ASID_M, ASID, G
: controls ability to trace for just one (or some) processes, recognized by their current ASID value as
found in
EntryHi[ASID]
. Set the
G
("global") to trace instructions from all and any ASIDs. Otherwise set
TraceControl[ASID]
to the value you want to trace and
ASID_M
to all 1s (you can also use
ASID_M
as a bit mask to
select several ASID values at once).
TFCR
: switch on to generate full PC addresses for all function call and return instructions.
TLSM
: switch on to trace all D-cache misses (potentially including the miss address).
TIM
: switch on to trace all I-cache misses.
On
: master trace on/off switch - set 0 to do no tracing at all.
The read-only fields in
TraceControl2
provide information about the capabilities of your PDtrace system. That system
may include a plug-in probe, and in that case the
TraceControl2[SyP]
field may read as garbage until the probe is
plugged in.
Mode
: whenever trace is turned on, you capture an instruction trace.
Mode
is a bit mask which determines what load/
store tracing will be done
31
. It’s coded like this:
However, see
TraceControl2[ValidModes]
(description below) for what your PDtrace unit is actually capable of doing.
Bad things can happen if you request a trace mode which isn’t available.
TraceControl2[ValidModes]
: what is this PDtrace unit capable of tracing?
Bit No Set What gets traced
0
PC
1
Load addresses
2
Store addresses
3
Load data
4
Store data
31. Prior to v4 of the PDtrace specification, this field was in
TraceControl
, and was too small to allow all conditions to be speci-
fied independently.
ValidModes
What can we trace?
00
PC trace only
01
Can trace load/store addresses
10
Can trace load/store addresses and data
Содержание MIPS32 74K Series
Страница 1: ...Document Number MD00541 Revision 02 14 March 30 2011 Programming the MIPS32 74K Core Family...
Страница 10: ...Programming the MIPS32 74K Core Family Revision 02 14 10...
Страница 20: ...1 4 A brief guide to the 74K core implementation Programming the MIPS32 74K Core Family Revision 02 14 20...
Страница 28: ...2 2 PRId register identifying your CPU type Programming the MIPS32 74K Core Family Revision 02 14 28...
Страница 54: ...3 8 The TLB and translation Programming the MIPS32 74K Core Family Revision 02 14 54...
Страница 83: ......
Страница 86: ...6 5 FPU pipeline and instruction timing Programming the MIPS32 74K Core Family Revision 02 14 86...
Страница 101: ...The MIPS32 DSP ASE 101 Programming the MIPS32 74K Core Family Revision 02 14...
Страница 134: ...8 4 Performance counters Programming the MIPS32 74K Core Family Revision 02 14 134...
Страница 154: ...C 3 FPU changes in Release 2 of the MIPS32 Architecture Programming the MIPS32 74K Core Family Revision 02 14 154...