Trace Unit
TBUF Register
Figure 21-11
shows the Trace Buffer register (
the latest branch target address. The second read returns the latest branch
source address.
Trace Buffer Register (TBUF)
0xFFE0 6100
TBUF[31:16]
Alias to all trace buffer entries
TBUF[15:0]
Figure 21-11. Trace Buffer Register
The Trace Unit does not record changes in program flow in:
• Emulator mode
• The exception or higher priority service routines (if
In the exception service routine, the program flow discontinuities
may be read from
Listing
While
TBUF
recording new discontinuities.
Code to Recreate the Execution Trace in Memory
Listing 21-1
provides code that recreates the entire execution trace in
memory.
21-18
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
X
X
X
X
X
X
X
15 14 13 12 11 10
9
X
X
X
X
X
X
X
and stored in memory by the code shown in
TBUF
21-1.
is being read, be sure to disable the trace buffer from
). The first read returns
TBUF
X
X
X
X
X
X
X
X
8
7
6
5
4
3
2
1
X
X
X
X
X
X
X
X
Reset = Undefined
X
0
X
= 1)
TBUFOVF