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

26 Key concepts<br />

WPC.IA_CHAIN_x<br />

where x = chain ID<br />

Field Bits Size Volatile? Synopsis Type<br />

CHAIN_<br />

STATE<br />

0 1 ✓ Chain-latch state RO<br />

Operation<br />

When read<br />

When written<br />

HARD reset<br />

1.2.9 Event counters<br />

Contains an IA watchpoint chain-latch’s value.<br />

The chain-latch is set whenever an IA watchpoint full-hit occurs. It is<br />

cleared whenever an IA watchpoint full-hit does not occur. The new<br />

value is visible to precondition checks from the next instruction<br />

(inclusive) onwards.<br />

Software can read the state of this latch at any time.<br />

Returns 0 when the latch is clear and 1 when the latch is set.<br />

Ignored<br />

Undefined<br />

— [63:1] 63 — Reserved RES<br />

Operation<br />

Reserved<br />

When read Returns 0<br />

When written<br />

HARD reset 0<br />

Ignored<br />

Table 6: WPC.IA_CHAIN_x definition<br />

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

channels to provide count-based matching of debug events.<br />

D R A FT<br />

An implementation may provide a maximum of 16 event counters, thus a 4-<strong>bit</strong> field<br />

is used for the event counter ID. The counter has a maximum size of <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.2: Event counters on page 242<br />

for implementation-specific details.<br />

A number of event counters are available, some are implemented in the WPC and<br />

are accessible only by CPU core watchpoint channels, whilst others are<br />

implemented in the DM and are accessible only by bus analyzer watchpoint<br />

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