25.02.2015 Views

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 ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PRELIMINARY DATA<br />

Debug protocols and interfaces 119<br />

When the <strong>SH</strong>debug link is the currently-selected debug interface and <strong>SH</strong>-5 has no<br />

data to send, the debug module maintains a line idle condition on the <strong>SH</strong>debug link.<br />

Message type name Message type field Meaning<br />

MHDR_IDLE 0b000 Line idle condition<br />

MHDR_DBUS 0b001 DBUS message.<br />

MHDR_DTRC_BACK 0b010 DTRC background trace message.<br />

MHDR_DTRC_TRIG 0b011 DTRC trigger trace message.<br />

MHDR_REF 0b100 Reference message<br />

1.9.3 DTRC messages<br />

DTRC messages contain information captured by both the WPC, DM and bus<br />

analyzers.<br />

These are stored in the debug FIFO, or sent to the tool without any CPU<br />

involvement. Such trace messages, sent by the on-chip debug module, include:<br />

• information from each CPU watchpoint hit,<br />

• branch trace information,<br />

• fast printf output,<br />

• information captured in bus analyzer bus capture buffers.<br />

Trace message types<br />

D R A FT<br />

Watchpoints and bus analyzer bus capture buffers can generate two types of trace<br />

message:<br />

• a trigger trace message,<br />

• a background trace message.<br />

0b101, 0b110 or 0b111 Not currently defined<br />

Table 39: Message type values<br />

The watchpoint hit information contained in these two types of message is the same;<br />

the only difference is the use of a different message header code. The use of different<br />

message header codes permits the tool to take different actions for the two types of<br />

trace message.<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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!