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.

DebugNoteAs the amount of data transferred increases, these functions reach an optimumperformance of one debug register access per data word transferred.Accessing secure and nonsecure coprocessor registersThe sequence for accessing coprocessor registers is the same as for the PC and CPSR.That is, you must first execute an instruction to transfer the register to an <strong>ARM</strong> register,then read the value back through the DTR.Example 12-27 shows the sequence for reading a coprocessor register.Example 12-27 Reading a coprocessor registeruint32 ReadCPReg(int CPnum, int opc1, int CRn, int CRm, int opc2){// Step 1. Save R0.saved_r0 := ReadRegister(0);// Step 2. Execute instruction MCR p15, 0, r0, c0, c1, 0 through the ITR.Execute<strong>ARM</strong>Instruction(0xEE000010 + (CPnum

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

Saved successfully!

Ooh no, something went wrong!