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

Reset, panic and debug events 79<br />

Note:<br />

The MMU <strong>bit</strong> of the status register determines whether the MMU is enabled. The<br />

standard exception handler launch sequence involves copying the status register<br />

(SR) to the saved status register (SSR). Therefore the previous enable/disable status<br />

of the MMU is available such that it can be restored by the exception handler’s exit<br />

sequence (that is, the RTE instruction).<br />

SR.BL <strong>bit</strong><br />

When the BL <strong>bit</strong> of SR is ‘1’:<br />

• Attempts to raise a debug exception of type DEBUGIA, DEBUGIV, DEBUGOA,<br />

DEBUGSS or BREAK will result in a panic event being raised instead. EXPEVT will<br />

be set to indicate the normal event type, even though a panic event is generated.<br />

This allows the panic handler to distinguish between the synchronous debug<br />

event types.<br />

Panic events can be recovered from (as the previous EXPEVT contents are<br />

recorded in PEXPEVT), thus a target debug agent will need to handle both panic<br />

events and other types of debug event.<br />

• Attempts to raise a debug interrupt (DEBUGINT) will block until the BL <strong>bit</strong> is<br />

cleared.<br />

If the cause of the debug interrupt is de-asserted whilst BL is set, the debug interrupt<br />

will be lost.<br />

SR.WATCH <strong>bit</strong><br />

See Section 1.6.1: SR.WATCH <strong>bit</strong> on page 66.<br />

SR.STEP <strong>bit</strong><br />

When SR.STEP is ‘1’, an event will be raised whenever an instruction execution<br />

completes. The type of event generated depends on the value of SR.BL:<br />

D R A FT<br />

• If SR.BL is ‘0’, a debug exception of type DEBUGSS will be raised.<br />

• If SR.BL is ‘1’, a panic event will be raised.<br />

In both these cases EXPEVT is set as per Table 26: Synchronous debug exceptions on<br />

page 81<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!