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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

12.3 Debug register interface<br />

12.3.1 Coprocessor registers<br />

12.3.2 CP14 access permissions<br />

12.3.3 Coprocessor registers summary<br />

Debug<br />

You can access the debug register map using the APB interface. This is the only way to get full<br />

access to the processor debug capability. <strong>ARM</strong> recommends that if your system requires the<br />

processor to access its own debug registers, you choose a system interconnect structure that<br />

enables the processor to access the APB interface by executing load and stores to a certain area<br />

of physical memory.<br />

Although most of the debug registers are accessible through the memory-mapped interface,<br />

there are several registers that you can access through a coprocessor interface. This is important<br />

for boot-strap access to the <strong>ARM</strong> register file. It enables software running on the processor to<br />

identify the debug architecture version implemented by the device.<br />

By default, you can access all CP14 debug registers from a nonprivileged mode. However, you<br />

can program the processor to disable user-mode access to all coprocessor registers using bit [12]<br />

of the DSCR, see CP14 c1, Debug Status and Control Register on page 12-15 for more<br />

information. CP14 debug registers accesses are always permitted while the processor is in debug<br />

state regardless of the processor mode.<br />

Table 12-1 shows access to the CP14 debug registers.<br />

Table 12-2 on page 12-6 shows the valid CP14 debug instructions for accessing the debug<br />

registers. All CP14 debug instructions not listed are Undefined.<br />

Note<br />

The CP14 debug instructions are defined as having Opcode_1 set to 0.<br />

Table 12-1 Access to CP14 debug registers<br />

Debug state Processor mode DSCR[12] CP14 debug access<br />

Yes X a<br />

X Permitted<br />

No User b0 Permitted<br />

No User b1 Undefined<br />

No Privileged X Permitted<br />

a. X indicates a Don’t care condition. The outcome does not depend on this<br />

condition.<br />

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

ID060510 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!