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

28 Key concepts<br />

1.2.10 Performance counters<br />

<strong>SH</strong>-5 provides a series of performance counters, these are used in conjunction with<br />

the WP channels and WP facilities to provide observation of internal CPU and bus<br />

events. Some of the counters are physically located within the WPC and others are<br />

physically located within the debug module.<br />

• Performance counters within the WPC may be incremented either when a WPC<br />

watchpoint hit occurs or when a WPC_PERF channel match occurs. Refer to<br />

Section 1.18: WP channel type WPC_PERF on page 165.<br />

• Performance counters within the DM may be incremented when a PL watchpoint<br />

hit occurs.<br />

An implementation may provide a maximum of 16 performance counters, thus a 4<br />

<strong>bit</strong> field is used for the performance counter ID. The counter has a maximum size of<br />

<strong>64</strong> <strong>bit</strong>s.<br />

Any particular implementation may provide fewer than 16 counters, and those<br />

provided may have fewer than <strong>64</strong> <strong>bit</strong>s. See Section 4.1.3: Performance counters on<br />

page 243 for implementation-specific details.<br />

The counters may be written to at any time. They are modulo-N counters, and thus<br />

will wrap around.<br />

D R A FT<br />

<strong>SuperH</strong>, Inc.<br />

<strong>SH</strong>-5 <strong>System</strong> <strong>Architecture</strong>, <strong>Volume</strong> 3: Debug 05-SA-10003 v1.0

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

Saved successfully!

Ooh no, something went wrong!