09.12.2012 Views

Cortex-A8 Technical Reference Manual - ARM Information Center

Cortex-A8 Technical Reference Manual - ARM Information Center

Cortex-A8 Technical Reference Manual - ARM Information Center

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

12.11.4 Debug state entry<br />

Example 12-10 shows the code for single-stepping off an instruction.<br />

SingleStepOff(uint32 address)<br />

{<br />

bkpt := FindUnusedBreakpointWithMismatchCapability();<br />

SetComplexBreakpoint(address, 2'b100 dscr := ReadDebugRegister(34);<br />

// Step 2. Issue a Data Synchronization Barrier instruction if required;<br />

// this is not required by the processor but is required for <strong>ARM</strong>v7<br />

Example 12-11 Entering debug state<br />

<strong>ARM</strong> DDI 0344K Copyright © 2006-2010 <strong>ARM</strong> Limited. All rights reserved. 12-76<br />

ID060510 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!