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

102 Debug module<br />

DM.TRCTL<br />

0x100040<br />

Field Bits Size Volatile? Synopsis Type<br />

STALL_MODE 8 1 — CPU stall mode RW<br />

Operation<br />

When read<br />

When written<br />

HARD reset 0<br />

Defines the current CPU stall mode. This determines what happens<br />

when the DM capture buffer fills.<br />

Value - description<br />

0: (Discard mode). Do not stall the CPU when the capture buffer<br />

reaches its almost-full threshold. Instead, keep filling the capture<br />

buffer with watchpoint hit entries from the WPC and when no space<br />

is available, discard watchpoint hits which are unable to be written<br />

into the capture buffer.<br />

1: (Stall mode). Stall the CPU when the DM capture buffer reaches<br />

its almost-full threshold. The CPU does not instantly react to a stall<br />

request from the DM and by using an almost-full threshold, enough<br />

space is available in the capture buffer for any additional watchpoint<br />

hit entries which may occur.<br />

Returns current value<br />

Updates value<br />

STALL_STATE 9 1 ✓ Current CPU stall/suspend state RO<br />

Operation<br />

When read<br />

When written<br />

Defines if the CPU is currently stalled due to the DM’s capture buffer<br />

being almost-full or if the CPU is suspended.<br />

Stall behavior is controlled by the stall_mode field.<br />

Suspend behavior is controlled by the WPC.CPU_CTRL_ACTION<br />

register (Section 1.3.1: Suspending/resuming the CPU on page 30).<br />

Returns current value.<br />

Value - Description<br />

0: not stalled.<br />

1: stalled<br />

D R A FT<br />

Ignored<br />

HARD reset 0<br />

Table 31: DM.TRCTL definition<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!