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 ...
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 matching 71<br />
When none of the matching channels have ACTION_EXCEPTION programmed in their<br />
action registers, the effect is to logically ‘OR’ together the actions across all the<br />
matching channels. Thus, if 2 channels both specify the same performance counter<br />
decrement, that performance counter will still only be decremented by 1 per<br />
matching instruction.<br />
When one or more of the matching channels have ACTION_EXCEPTION programmed<br />
in their action registers, the behavior is as follows. The following WPC and DM<br />
actions are suppressed, regardless of which matching channel (excepting or<br />
non-excepting) requests them:<br />
• set or clear WPC or DM generic chain latch,<br />
• increment WPC performance counter,<br />
• reset WPC performance counters,<br />
• trace generation,<br />
• raise debug interrupt,<br />
• trigger out message generation.<br />
If some matching channels specify ACTION_ECOUNT in their action registers,<br />
whether or not a particular WPC event counter is decremented is determined by<br />
whether the following conditions hold:<br />
• there must be at least one matching channel with ACTION_EXCEPTION and<br />
ACTION_ECOUNT set, with ECOUNT_ID referring to the particular event counter<br />
AND<br />
• at least one such channel must be of the type corresponding to the debug<br />
exception that is actually launched.<br />
For example,<br />
• if DEBUGIA is launched, only matching IA channels with both ACTION_EXCEPTION<br />
and ACTION_ECOUNT set can cause a WPC event counter to be decremented.<br />
Matching IV and OA channels have their ACTION_ECOUNT settings ignored.<br />
D R A FT<br />
When a <strong>SH</strong>compact mode instruction hits multiple WPC channels, there may be<br />
some divergence from the above description, depending on the particular<br />
<strong>SH</strong>compact instruction involved. In particular, non-exception actions programmed<br />
on a matching IA channel may occur even when a DEBUGOA exception is launched<br />
from a matching OA channel.<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