The DFSR characteristics are:
Holds status information about the last data fault.
This register is part of the Exception and fault handling registers functional group.
AArch32 System register DFSR is architecturally mapped to AArch64 System register ESR_EL1.
The current translation table format determines which format of the register is used.
RW fields in this register reset to architecturally UNKNOWN values.
DFSR is a 32-bit register.
The DFSR bit assignments are:
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | FnV | AET | CM | ExT | WnR | FS[4] | LPAE | 0 | Domain | FS[3:0] |
Reserved, RES0.
FAR not Valid, for a Synchronous external abort other than a Synchronous external abort on a translation table walk.
FnV | Meaning |
---|---|
0 |
DFAR is valid. |
1 |
DFAR is not valid, and holds an UNKNOWN value. |
This field is only valid for a Synchronous external abort other than a Synchronous external abort on a translation table walk. It is RES0 for all other Data Abort exceptions.
Asynchronous Error Type. When the RAS Extension is implemented, this field describes the state of the PE after taking an asynchronous Data Abort exception. Possible values are:
AET | Meaning |
---|---|
00 |
Uncontainable error (UC) or uncategorized. |
01 |
Unrecoverable error (UEU). |
10 |
Restartable error (UEO) or Corrected error (CE). |
11 |
Recoverable error (UER). |
When the RAS Extension is not implemented, or on a synchronous Data Abort, this field is RES0.
ARMv8.2 requires the implementation of the RAS Extension.
In the event of multiple errors taken as a single SError interrupt exception, the overall state of the PE is reported.
Software can use this information to determine what recovery might be possible. The recovery software must also examine any implemented fault records to determine the location and extent of the error.
Cache maintenance fault. For synchronous faults, this bit indicates whether a cache maintenance instruction generated the fault. The possible values of this bit are:
CM | Meaning |
---|---|
0 |
Abort not caused by execution of a cache maintenance instruction. |
1 |
Abort caused by execution of a cache maintenance instruction. |
On a synchronous Data Abort on a translation table walk, this bit is UNKNOWN.
On an asynchronous fault, this bit is UNKNOWN.
External abort type. This bit can be used to provide an IMPLEMENTATION DEFINED classification of external aborts.
In an implementation that does not provide any classification of external aborts, this bit is RES0.
For aborts other than external aborts this bit always returns 0.
Write not Read bit. Indicates whether the abort was caused by a write or a read instruction. The possible values of this bit are:
WnR | Meaning |
---|---|
0 |
Abort caused by a read instruction. |
1 |
Abort caused by a write instruction. |
For faults on the cache maintenance and address translation System instructions in the (coproc==1111) encoding space this bit always returns a value of 1.
See FS[3:0], bits [3:0] for description of the FS field.
On taking a Data Abort exception, this bit is set as follows:
LPAE | Meaning |
---|---|
0 |
Using the Short-descriptor translation table formats. |
1 |
Using the Long-descriptor translation table formats. |
Hardware does not interpret this bit to determine the behavior of the memory system, and therefore software can set this bit to 0 or 1 without affecting operation.
Reserved, RES0.
The domain of the fault address.
ARM deprecates any use of this field, see 'The Domain field in the DFSR' in the ARMv8 ARM.
This field is UNKNOWN for certain faults where the DFSR is updated and reported using the Short-descriptor FSR encodings, see 'Validity of Domain field on faults that update the DFSR when using the Short-descriptor encodings' in the ARMv8 ARM.
Fault status bits. Interpreted with bit [10]. Possible values of FS[4:0] are:
FS | Meaning |
---|---|
00001 |
Alignment fault |
00010 |
Debug exception |
00011 |
Access flag fault, level 1 |
00100 |
Fault on instruction cache maintenance |
00101 |
Translation fault, level 1 |
00110 |
Access flag fault, level 2 |
00111 |
Translation fault, level 2 |
01000 |
Synchronous external abort, not on translation table walk |
01001 |
Domain fault, level 1 |
01011 |
Domain fault, level 2 |
01100 |
Synchronous external abort, on translation table walk, level 1 |
01101 |
Permission fault, level 1 |
01110 |
Synchronous external abort, on translation table walk, level 2 |
01111 |
Permission fault, level 2 |
10000 |
TLB conflict abort |
10100 |
IMPLEMENTATION DEFINED fault (Lockdown fault) |
10101 |
IMPLEMENTATION DEFINED fault (Unsupported Exclusive access fault) |
10110 |
SError interrupt |
11000 |
SError interrupt, from a parity or ECC error on memory access |
11001 |
Synchronous parity or ECC error on memory access, not on translation table walk |
11100 |
Synchronous parity or ECC error on translation table walk, level 1 |
11110 |
Synchronous parity or ECC error on translation table walk, level 2 |
All other values are reserved.
When the RAS Extension is implemented, 11000, 11001, 11100, and 11110, are reserved.
For more information about the lookup level associated with a fault, see 'The level associated with MMU faults on a Short-descriptor translation table lookup' in the ARMv8 ARM.
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | FnV | AET | CM | ExT | WnR | 0 | LPAE | 0 | 0 | 0 | STATUS |
Reserved, RES0.
FAR not Valid, for a Synchronous external abort other than a Synchronous external abort on a translation table walk.
FnV | Meaning |
---|---|
0 |
DFAR is valid. |
1 |
DFAR is not valid, and holds an UNKNOWN value. |
This field is only valid for a Synchronous external abort other than a Synchronous external abort on a translation table walk. It is RES0 for all other Data Abort exceptions.
Asynchronous Error Type. When the RAS Extension is implemented, this field describes the state of the PE after taking an asynchronous Data Abort exception. Possible values are:
AET | Meaning |
---|---|
00 |
Uncontainable error (UC) or uncategorized. |
01 |
Unrecoverable error (UEU). |
10 |
Restartable error (UEO) or Corrected error (CE). |
11 |
Recoverable error (UER). |
When the RAS Extension is not implemented, or on a synchronous Data Abort, this field is RES0.
ARMv8.2 requires the implementation of the RAS Extension.
In the event of multiple errors taken as a single SError interrupt exception, the overall state of the PE is reported.
Software can use this information to determine what recovery might be possible. The recovery software must also examine any implemented fault records to determine the location and extent of the error.
Cache maintenance fault. For synchronous faults, this bit indicates whether a cache maintenance instruction generated the fault. The possible values of this bit are:
CM | Meaning |
---|---|
0 |
Abort not caused by execution of a cache maintenance instruction. |
1 |
Abort caused by execution of a cache maintenance instruction. |
On a synchronous Data Abort on a translation table walk, this bit is UNKNOWN.
On an asynchronous fault, this bit is UNKNOWN.
External abort type. This bit can be used to provide an IMPLEMENTATION DEFINED classification of external aborts.
In an implementation that does not provide any classification of external aborts, this bit is RES0.
For aborts other than external aborts this bit always returns 0.
Write not Read bit. Indicates whether the abort was caused by a write or a read instruction. The possible values of this bit are:
WnR | Meaning |
---|---|
0 |
Abort caused by a read instruction. |
1 |
Abort caused by a write instruction. |
For faults on the cache maintenance and address translation System instructions in the (coproc==1111) encoding space this bit always returns a value of 1.
Reserved, RES0.
On taking a Data Abort exception, this bit is set as follows:
LPAE | Meaning |
---|---|
0 |
Using the Short-descriptor translation table formats. |
1 |
Using the Long-descriptor translation table formats. |
Hardware does not interpret this bit to determine the behavior of the memory system, and therefore software can set this bit to 0 or 1 without affecting operation.
Reserved, RES0.
Fault status bits. Possible values of this field are:
STATUS | Meaning |
---|---|
000000 | |
000001 |
Address size fault, level 1 |
000010 |
Address size fault, level 2 |
000011 |
Address size fault, level 3 |
000101 |
Translation fault, level 1 |
000110 |
Translation fault, level 2 |
000111 |
Translation fault, level 3 |
001001 |
Access flag fault, level 1 |
001010 |
Access flag fault, level 2 |
001011 |
Access flag fault, level 3 |
001101 |
Permission fault, level 1 |
001110 |
Permission fault, level 2 |
001111 |
Permission fault, level 3 |
010000 |
Synchronous external abort, not on translation table walk |
010001 |
SError interrupt |
010101 |
Synchronous external abort, on translation table walk, level 1 |
010110 |
Synchronous external abort, on translation table walk, level 2 |
010111 |
Synchronous external abort, on translation table walk, level 3 |
011000 |
Synchronous parity or ECC error on memory access, not on translation table walk |
011001 |
SError interrupt, from a parity or ECC error on memory access |
011101 |
Synchronous parity or ECC error on memory access on translation table walk, level 1 |
011110 |
Synchronous parity or ECC error on memory access on translation table walk, level 2 |
011111 |
Synchronous parity or ECC error on memory access on translation table walk, level 3 |
100001 |
Alignment fault |
100010 |
Debug exception |
110000 |
TLB conflict abort |
110100 |
IMPLEMENTATION DEFINED fault (Lockdown fault) |
110101 |
IMPLEMENTATION DEFINED fault (Unsupported Exclusive access fault) |
All other values are reserved.
When the RAS Extension is implemented, 011000, 011001, 011101, 011110, and 011111, are reserved.
For more information about the lookup level associated with a fault, see 'The level associated with MMU faults on a Long-descriptor translation table lookup' in the ARMv8 ARM.
This register can be read using MRC with the following syntax:
MRC <syntax>
This register can be written using MCR with the following syntax:
MCR <syntax>
This syntax uses the following encoding in the System instruction encoding space:
<syntax> | opc1 | opc2 | CRn | coproc | CRm |
---|---|---|---|---|---|
p15, 0, <Rt>, c5, c0, 0 | 000 | 000 | 0101 | 1111 | 0000 |
The register is accessible as follows:
Configuration | Control | Accessibility | Instance | |||||
---|---|---|---|---|---|---|---|---|
E2H | TGE | NS | EL0 | EL1 | EL2 | EL3 | ||
EL3 not implemented | x | x | 0 | - | RW | n/a | n/a | DFSR |
EL3 not implemented | x | 0 | 1 | - | RW | RW | n/a | DFSR |
EL3 not implemented | x | 1 | 1 | - | n/a | RW | n/a | DFSR |
EL3 using AArch64 | x | x | 0 | - | RW | n/a | n/a | DFSR |
EL3 using AArch64 | x | 0 | 1 | - | RW | RW | n/a | DFSR |
EL3 using AArch64 | x | 1 | 1 | - | n/a | RW | n/a | DFSR |
EL3 using AArch32 | x | x | 0 | - | n/a | n/a | RW | DFSR_s |
EL3 using AArch32 | x | 0 | 1 | - | RW | RW | RW | DFSR_ns |
EL3 using AArch32 | x | 1 | 1 | - | n/a | RW | RW | DFSR_ns |
This table applies to all instructions that can access this register.
For a description of the prioritization of any generated exceptions, see section G1.11.2 (Exception priority order) in the ARM® Architecture Reference Manual, ARMv8, for ARMv8-A architecture profile for exceptions taken to AArch32 state, and section D1.13.2 (Synchronous exception prioritization) for exceptions taken to AArch64 state. Subject to the prioritization rules, the following traps and enables are applicable when accessing this register.
When EL2 is implemented and is using AArch64 and SCR_EL3.NS==1 && HCR_EL2.E2H==0 :
If HCR_EL2.TVM==1, Non-secure write accesses to this register from EL1 are trapped to EL2.
If HCR_EL2.TRVM==1, Non-secure read accesses to this register from EL1 are trapped to EL2.
If HSTR_EL2.T5==1, Non-secure accesses to this register from EL1 are trapped to EL2.
When EL2 is implemented and is using AArch64 and SCR_EL3.NS==1 && HCR_EL2.E2H==1 && HCR_EL2.TGE==0 :
If HCR_EL2.TVM==1, Non-secure write accesses to this register from EL1 are trapped to EL2.
If HCR_EL2.TRVM==1, Non-secure read accesses to this register from EL1 are trapped to EL2.
If HSTR_EL2.T5==1, Non-secure accesses to this register from EL1 are trapped to EL2.
When EL2 is implemented and is using AArch32 and SCR_EL3.NS==1 :
18/04/2017 17:00
Copyright © 2010-2017 ARM Limited or its affiliates. All rights reserved. This document is Confidential.