Debug
ARM DDI 0301H
Copyright © 2004-2009 ARM Limited. All rights reserved.
13-12
ID012310
Non-Confidential, Unrestricted Access
The register accessed is dependent on the instruction used:
•
writes, MCR and LDC instructions, access the wDTR
•
reads, MRC and STC instructions, access the rDTR.
Note
Read and write refer to the core view.
For details of the use of these registers with the rDTRfull flag and wDTRfull flag see
Debug
communications channel
on page 13-42. Figure 13-4 shows the format of both the rDTR and
wDTR.
Figure 13-4 DTR format
Table 13-5 lists the bit field definitions for rDTR and wDTR.
13.3.5
CP14 c6, Watchpoint Fault Address Register (WFAR)
The purpose of the
Watchpoint Fault Address Register
(WFAR) is to hold the Virtual Address
of the instruction that caused the watchpoint.
The register WFAR is:
•
in CP14 c6
•
a 32-bit read/write register
•
accessible in privileged modes only.
When a watchpoint occurs in:
•
ARM state, the WFAR contains the address of the instruction causing it plus
0x8
.
•
Thumb state, the WFAR contains the address of the instruction causing it plus
0x4
.
•
Jazelle state, the WFAR contains the address of the instruction causing it.
The contents of the WFAR are unaffected when a precise Data Abort or Prefetch Abort occurs.
To use the Watchpoint Fault Address Register read or write CP14 with:
•
Opcode_1 set to 0
•
CRn set to c0
•
CRm set to c6
•
Opcode_2 set to 0.
For example:
MRC p14, 0, <Rd>, c0, c6, 0
; Read Watchpoint Fault Address Register
MCR p14, 0, <Rd>, c0, c6, 0
; Write Watchpoint Fault Address Register
Data
31
0
Table 13-5 Data Transfer Register bit field definitions
Bits
Core view
External view
Reset value
Description
[31:0]
R
W
-
Read data transfer register, read-only
[31:0]
W
R
-
Write data transfer register, write-only