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

WP channel type OA 147<br />

1.12.3 Data match registers<br />

The DM provides a single data value/data mask comparator (controlled by<br />

additional DM.OA_MATCH_* registers) which is used to provide additional filtering of<br />

OA channels.<br />

The standard ACTION_EXCEPTION, ACTION_ECOUNT, ACTION_CHAIN_ALTER and<br />

PRE_CHAIN_CLEAR (as specified by WPC.WP_OAX_ACTION) apply as normal and are<br />

totally unaffected by the programming of these additional DM.OA_MATCH_*<br />

registers.<br />

The debug module’s data value/data mask comparator can be combined with one, or<br />

several of the standard OA channels. This allows an additional set of actions to be<br />

performed:<br />

• Trace data can be made conditional on the data value written matching a<br />

specified value/mask.<br />

This is determined by the oa_match field of DM.WP_OAX_ACTION.<br />

• A debug interrupt can be generated, which is triggered whenever a specified OA<br />

channel triggers, and the DM data value/mask comparison also triggers.<br />

This is determined by the action_interrupt field of DM.WP_OAX_ACTION but<br />

differs from the standard DEBUGOA exception (specified by the action_exception<br />

field of WPC.WP_OAX_ACTION) as follows:<br />

- It generates an interrupt rather than an exception.<br />

Interrupts are asynchronous to the instruction stream, and thus do not occur<br />

precisely;<br />

- As it is a DEBUGINT event, it uses offset 0x200 to RESVEC/DBRVEC;<br />

- The TEA register does not contain the data address.<br />

- The interrupt is distinguished from other causes of debug interrupt, by<br />

DM.EXP_CAUSE.OA_MATCH_INTERRUPT == 1.<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

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

Saved successfully!

Ooh no, something went wrong!