Intel
®
IXP42X Product Line of Network Processors and IXC1100 Control Plane Processor
September 2006 DM
Order Number: 252480-006US 111
Intel XScale
®
Processor—Intel
®
IXP42X product line and IXC1100 control plane processors
3.6.12.1.2 Trace Buffer Register (TBREG)
The trace buffer is read through TBREG, using MRC and MCR. Software should only
read the trace buffer when it is disabled. Reading the trace buffer while it is enabled,
may cause unpredictable behavior of the trace buffer. Writes to the trace buffer have
unpredictable results.
Reading the trace buffer returns the oldest byte in the trace buffer in the least
significant byte of TBREG. The byte is either a message byte or one byte of the 32 bit
address associated with an indirect branch message.Table 48 shows the format of the
trace buffer register.
3.6.13 Trace Buffer Entries
Trace buffer entries consist of either one or five bytes. Most entries are one byte
messages indicating the type of control flow change. The target address of the control
flow change represented by the message byte is either encoded in the message byte
(like for exceptions) or can be determined by looking at the instruction word (like for
direct branches). Indirect branches require five bytes per entry. One byte is the
message byte identifying it as an indirect branch. The other four bytes make up the
target address of the indirect branch. The following sections describe the trace buffer
entries in detail.
3.6.13.1 Message Byte
There are two message formats, (exception and non-exception) as shown in Figure 21.
Table 49 shows all of the possible trace messages.
Table 48. TBREG Format
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Data
reset value: unpredictable
Bits Access Description
31:8 Read-as-Zero/Write-ignored Reserved
7:0 Read / Write-unpredictable Message Byte or Address Byte
Figure 21. Message Byte Formats
07
VM CCCCVV
07
MM CCCCMM
Exception Format
Non-exception Format
M = Message Type Bit
VVV = exception vector[4:2]
CCCC = Incremental Word Count
MMMM = Message Type Bits
CCCC = Incremental Word Count