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 matching 69<br />

Potentially either clear or set a DM chain latch:<br />

if ( (FULL_WP_HIT && EXTRA_HIT) && (!action.action_exception) ) {<br />

maybeUpdateDMChainLatch = 1;<br />

} else {<br />

maybeUpdateDMChainLatch = 0;<br />

}<br />

if (maybeUpdateDMChainLatch && action.action_chain_alter == 0b10) {<br />

CHAIN_LATCH[action.chain_id] = 0;<br />

}<br />

if (maybeUpdateDMChainLatch && action.action_chain_alter == 0b11) {<br />

CHAIN_LATCH[action.chain_id] = 1;<br />

}<br />

Potentially generate trace (see Section 1.8.5: IA watchpoint trace modes on page 92<br />

for full details):<br />

if ((FULL_WP_HIT && EXTRA_HIT) && action.action_trace &&<br />

!action.action_exception) {<br />

GenerateTrace();<br />

}<br />

Potentially generate an interrupt:<br />

if ((FULL_WP_HIT && EXTRA_HIT) && !action.action_exception &&<br />

action.action_interrupt) {<br />

GenerateInterrupt();<br />

}<br />

Potentially modify performance counters:<br />

if (FULL_WP_HIT && !action.action_exception && action.action_pcount)<br />

{<br />

IncrementPerformanceCounter(action.pcount_id);<br />

}<br />

if (FULL_WP_HIT && !action.action_exception &&<br />

action.reset_all_pcount) {<br />

ResetAllPerformanceCounters();<br />

}<br />

Potentially signal the trigger out pin:<br />

D R A FT<br />

if ((FULL_WP_HIT && EXTRA_HIT) &&<br />

!action.action_exception && action.action_trig_out) {<br />

PulseTriggerOutPin();<br />

}<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!