Trace Unit
21-18
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
TBUF Register
Figure 21-11
shows the Trace Buffer register (
TBUF
). The first read returns
the latest branch target address. The second read returns the latest branch
source address.
The Trace Unit does not record changes in program flow in:
• Emulator mode
• The exception or higher priority service routines (if
TBUFOVF
= 1)
In the exception service routine, the program flow discontinuities
may be read from
TBUF
and stored in memory by the code shown in
Listing 21-1
.
L
While
TBUF
is being read, be sure to disable the trace buffer from
recording new discontinuities.
Code to Recreate the Execution Trace in Memory
Listing 21-1
provides code that recreates the entire execution trace in
memory.
Figure 21-11. Trace Buffer Register
X
31 30
29 28
27 26
25 24
23 22
21 20
19
18 17 16
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
Reset = Undefined
X
X
15 14
13 12
11 10
9
8
7
6
5
4
3
2
1
0
X
X
X
X
X
X
X
X
X
X
X
X
Trace Buffer Register (TBUF)
TBUF[15:0]
X
TBUF[31:16]
Alias to all trace buffer entries
0xFFE0 6100
Summary of Contents for ADSP-BF53x Blackfin
Page 38: ...Conventions xxxviii ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 134: ...System Reset and Powerup 3 18 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 324: ...Instruction Overview 7 20 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 486: ...Instruction Overview 13 28 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 512: ...Instruction Overview 14 26 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 604: ...Instruction Overview 15 92 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 688: ...Instruction Overview 18 48 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 742: ...Instruction Overview 19 54 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 752: ...Examples 20 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 790: ...ADSP BF535 Flags A 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 800: ...Performance Monitor Registers B 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 1042: ...Index I 40 ADSP BF53x BF56x Blackfin Processor Programming Reference...