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.

Virtual Memory System <strong>Architecture</strong> (VMSA)<br />

WnR, bit [11] Write not Read bit. Indicates whether the abort was caused by a write or a read access:<br />

0 Abort caused by a read access<br />

1 Abort caused by a write access.<br />

FS, bits [10,3:0]<br />

For faults on CP15 cache maintenance operations, including the VA to PA translation<br />

operations, this bit always returns a value of 1.<br />

Fault status bits. For the valid encodings of these bits in an <strong>ARM</strong>v7-A implementation with<br />

a VMSA, see Table B3-12 on page B3-51.<br />

All encodings not shown in the table are reserved.<br />

Domain, bits [7:4]<br />

The domain of the fault address.<br />

From <strong>ARM</strong>v7 use of this field is deprecated, see The Domain field in the DFSR on<br />

page B3-52.<br />

For information about using the DFSR see Fault Status <strong>and</strong> Fault Address registers in a VMSA<br />

implementation on page B3-48.<br />

Accessing the DFSR<br />

To access the DFSR you read or write the CP15 registers with set to 0, set to c5, set to<br />

c0, <strong>and</strong> set to 0. For example:<br />

MRC p15,0,,c5,c0,0 ; Read CP15 Data Fault Status Register<br />

MCR p15,0,,c5,c0,0 ; Write CP15 Data Fault Status Register<br />

c5, Instruction Fault Status Register (IFSR)<br />

The Instruction Fault Status Register, IFSR, holds status information about the last instruction fault.<br />

The IFSR is:<br />

a 32-bit read/write register<br />

accessible only in privileged modes<br />

when the Security Extensions are implemented, a Banked register.<br />

The format of the IFSR is:<br />

31 13 12 11 10 9<br />

Bits [31:13,11,9:4]<br />

UNK/SBZP.<br />

UNK/SBZP<br />

ExT<br />

FS[4]<br />

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

(0)<br />

UNK/SBZP<br />

4 3<br />

FS[3:0]<br />

0

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

Saved successfully!

Ooh no, something went wrong!