SuperH (SH) 64-bit RISC Series SH-5 System Architecture, Volume ...
SuperH (SH) 64-bit RISC Series SH-5 System Architecture, Volume ...
SuperH (SH) 64-bit RISC Series SH-5 System Architecture, Volume ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
PRELIMINARY DATA<br />
Debug module 89<br />
When in “trace link”, “DM FIFO trace hold” or “trace buffer hold” mode the trace<br />
system can be programmed to either stall the CPU, or discard trace messages (see<br />
Stall/discard overview on page 91). In the FIFO modes, trace messages are packed<br />
into the DM FIFO in an implementation defined manner, according to the size of the<br />
trace message:<br />
• Some DM FIFO implementations may be byte-based so that a variant number of<br />
trace messages can be held in the DM FIFO, this provides “best fit” and thus<br />
makes most efficient use of the available FIFO space.<br />
• Some DM FIFO implementations may pack trace entries in a fixed manner (that<br />
is, 3*<strong>64</strong>-<strong>bit</strong>) intervals.<br />
In normal operation, fields of trace messages corresponding to PC values or bus<br />
analyzer address values are encoded relative to the last such address in order to<br />
make the trace messages as compact as possible. If the trace message which<br />
“seeded” these values is lost, the subsequent trace messages using relative values<br />
cannot be interpreted until a further absolute value is issued in a subsequent trace<br />
message.<br />
For this reason, when in “DM FIFO trace hold”/“trace buffer hold” mode or “circular<br />
DM FIFO”/“circular trace buffer” mode, all trace messages use absolute rather than<br />
relative values to ensure that the trace messages can be utilized even when a<br />
preceding message which “seeded” these values has been lost. See Section<br />
: Encoding of address offsets on page 120 for full details.<br />
Trace messages can be read from the DM FIFO an entry at a time using the<br />
DM.FIFO_{0/1/2} registers (see Section 1.8.13: DM.FIFO_0/DM.FIFO_1/DM.FIFO_2<br />
(FIFO port register) on page 112). When the DM FIFO is in “circular DM FIFO” mode,<br />
care must be taken to ensure trace is not being generated whilst it is being extracted<br />
or trace messages may be lost. See Section 1.8.13: DM.FIFO_0/DM.FIFO_1/<br />
DM.FIFO_2 (FIFO port register) on page 112 for full details.<br />
D R A FT<br />
05-SA-10003 v1.0<br />
<strong>SuperH</strong>, Inc.<br />
<strong>SH</strong>-5 <strong>System</strong> <strong>Architecture</strong>, <strong>Volume</strong> 3: Debug