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 OA 151<br />

Fields in WPC.WP_OAx_ACTION:<br />

ACTION_EXCEPTION: Standard event handling sequence is followed. If SR.BL == ‘0’,<br />

the RESVEC/DBRVEC offset is 0x100 (to denote a synchronous debug event of type<br />

DEBUGOA). Otherwise, if SR.BL == ‘1’, the RESVEC/DBRVEC offset is 0x0 (to denote a<br />

PANIC event).<br />

EXPEVT is set to 0x960 to denote a DEBUGOA exception.<br />

In addition, the effective operand address, is put into the TEA register.<br />

ACTION_ECOUNT Supported.<br />

ACTION_CHAIN_ALTER/CHAIN_ID Supported.<br />

ACTION_PCOUNT/ACTION_RESET_ALL_PCOUNT/PCOUNT_ID: Supported<br />

Fields in DM.WP_OAx_ACTION:<br />

OA_MATCH: Supported<br />

ACTION_INTERRUPT: Standard event handling sequence is followed. The RESVEC/<br />

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

EXPEVT is not set as this is a debug interrupt, not an exception.<br />

DM.EXP_CAUSE.OA_MATCH_INTERRUPT is set to ‘1’.<br />

ACTION_TRACE/TRACE_TYPE/ENABLE_TRACE_TIMESTAMP:<br />

The data included in trace messages is the same as that used for comparison with<br />

the DM.OA_MATCH_* registers. See Section 1.12.3: Data match registers on page 147<br />

and Table 42: OA watchpoint trace message on page 125.<br />

The contents of OA trace messages is controlled by the WPC.ADDR_IN_TRACE register<br />

(see Section 1.5.1: on page 65).<br />

D R A FT<br />

OA trace messages include a field (DATA_FIELD_SIZE) which indicates the size of the<br />

data written (see Table 42: OA watchpoint trace message on page 125).<br />

This field specifies the amount of data written as being either 0, 1, 2, 4 or 8 bytes. It<br />

also determines which <strong>bit</strong>s of the data are included in the data comparison, valid<br />

<strong>bit</strong>s are compared and invalid <strong>bit</strong>s are ignored.<br />

Normally the value encoded corresponds directly to the amount of data written by<br />

the triggering 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!