05.02.2013 Views

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Debug Register Interfaces<br />

C6.6 The CP14 debug register interfaces<br />

This section contains the following subsections:<br />

The Baseline CP14 debug register interface<br />

Extended CP14 interface on page C6-33<br />

CP14 debug registers access permissions on page C6-36.<br />

C6.6.1 The Baseline CP14 debug register interface<br />

Table C6-4 lists the set of CP14 debug instructions for accessing the debug registers that must be<br />

implemented.<br />

All MRC <strong>and</strong> MCR instructions with = 0b1110 <strong>and</strong> = 0b000 are debug instructions:<br />

Some of these instructions are defined in Table C6-4.<br />

Additional instructions are defined in Extended CP14 interface on page C6-33<br />

All other instructions are reserved for use by the Debug architecture. The behavior of reserved<br />

instructions is defined in CP14 debug registers access permissions on page C6-36.<br />

All MRC <strong>and</strong> MCR instructions with = 0b1110 <strong>and</strong> = 0b001 are used by the trace extension.<br />

Other values of are not used by the Debug architecture.<br />

All LDC <strong>and</strong> STC instructions with = 0b1110 that are not listed below are reserved for use by the<br />

Debug architecture <strong>and</strong> are currently UNDEFINED. All CDP, MRC2, MCR2, LDC2, STC2, LDCL, STCL, LDC2L, <strong>and</strong> STC2L<br />

instructions with = 0b1110 are UNDEFINED.<br />

Instructions that access registers that are only available in v7 Debug are UNDEFINED in earlier versions of<br />

the Debug architecture. For example, the read from DBGDRAR performed by MRC p14,0,,c1,c0,0 is<br />

UNDEFINED in v6 Debug <strong>and</strong> v6.1 Debug, but is permitted in v7 Debug.<br />

refers to any of the general-purpose registers R0-R14. Use of APSR_nzcv is UNPREDICTABLE except<br />

where stated. Use of R13 is UNPREDICTABLE in Thumb <strong>and</strong> ThumbEE state, <strong>and</strong> is deprecated in <strong>ARM</strong> state.<br />

Table C6-4 Baseline CP14 debug instructions<br />

Instruction Mnemonic Version Name <strong>and</strong> reference to description<br />

MRC p14,0,,c0,c0,0 DBGDIDR All Debug ID Register (DBGDIDR) on page C10-3<br />

MRC p14,0,,c1,c0,0 DBGDRAR v7 only Debug ROM Address Register (DBGDRAR) on<br />

page C10-7<br />

MRC p14,0,,c2,c0,0 DBGDSAR v7 only Debug Self Address Offset Register (DBGDSAR)<br />

on page C10-8<br />

C6-32 Copyright © 1996-1998, 2000, 2004-2008 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DDI 0406B

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

Saved successfully!

Ooh no, something went wrong!