13.07.2015 Views

Cortex-A8 R2P2.pdf - ARM Information Center

Cortex-A8 R2P2.pdf - ARM Information Center

Cortex-A8 R2P2.pdf - 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.

DebugNoteThe Data Abort handler checks the DFSR bits to determine if the exception entry wascaused by a Debug exception or other kind of Data Abort exception. If the cause is aDebug exception, the Data Abort handler must branch to the debug monitor. Theaddress of the instruction to restart can be found in the R14_abt register.Table 12-53 shows the values in the Link Register after exceptions. The <strong>ARM</strong> andThumb columns in this table represent the processor state in which the exceptionoccurred.Table 12-53 Values in Link Register after exceptionsCause of fault <strong>ARM</strong> Thumb Return address (RA) meaningBreakpoint RA+4 RA+4 Breakpointed instruction addressWatchpoint RA+8 RA+8 Address of the instruction that triggered the watchpoint eventBKPT instruction RA+4 RA+4 BKPT instruction addressVector catch RA+4 RA+4 Vector addressPrefetch Abort RA+4 RA+4 Address of the instruction that the prefetch abort event canceledData Abort RA+8 RA+8 Address of the instruction that the data abort event canceled12.7.1 Effect of debug exceptions on CP15 registers and WFARThe four CP15 registers that record abort information are:• Data Fault Address Register (DFAR)• Instruction Fault Address Register (IFAR)• Instruction Fault Status Register (IFSR)• Data Fault Status Register (DFSR).See Chapter 3 System Control Coprocessor for more information on these registers.If the processor takes a debug exception because of a watchpoint debug event, theprocessor performs the following actions on these registers:• it does not change the IFSR or IFAR• it updates the DFSR with the debug event encoding• it writes an Unpredictable value to the DFAR<strong>ARM</strong> DDI 0344E Copyright © 2006-2008 <strong>ARM</strong> Limited. All rights reserved. 12-75

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

Saved successfully!

Ooh no, something went wrong!