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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PRELIMINARY DATA<br />

WP channel type WPC_PERF 165<br />

Supported actions (determined by ff_thresh field of<br />

DM.TRCTL)<br />

INTERRUPT: Standard Event Handling sequence is followed. The RESVEC/DBRVEC<br />

offset is 0x200 (to denote a DEBUGINT event).<br />

DM.EXP_CAUSE.DM_FIFO_INTERRUPT is set to 1.<br />

The trace information present in the FIFO can be emptied one entry at a time, this<br />

is described in Section 1.8.13: DM.FIFO_0/DM.FIFO_1/DM.FIFO_2 (FIFO port<br />

register) on page 112.<br />

1.18 WP channel type WPC_PERF<br />

<strong>SH</strong>-5 has four performance counters, two located within the WPC and two located in<br />

the DM.<br />

A WPC performance counter is incremented when either of the following types of<br />

events occur:<br />

• A WPC watchpoint hit occurs and the watchpoint has its action_pcount field == 1<br />

and pcount_id field selecting a specific performance counter.<br />

• Whenever a CPU core event specified by fields of the<br />

WPC.WP_PERFX_MATCH_TYPE occurs and the conditions specified by fields of the<br />

WPC.WP_PERFX_PRE exist.<br />

One register per WPC_PERF channel is used to define the match conditions. The WPC<br />

performance counter channels do not have a WPC.WP_PERFX_ACTION register, they<br />

have an implicit action to increment the corresponding WPC performance counter.<br />

For example, the WPC.WP_PERF0 channel increments the WPC.PCOUNT_VALUE_0<br />

counter.<br />

The specified match conditions are detected at different blocks of the CPU, and at<br />

different stages of the CPU pipeline. Thus the exact timing relationship between<br />

different match conditions is implementation dependant.<br />

D R A FT<br />

On each cycle, the match conditions are “OR”ed together and processed, yielding<br />

either 0 or 1 increments per cycle. The descriptions of the individual filters (in<br />

Table 60) specify whether this results in either 0..1 or 0..N increments per<br />

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