summaryrefslogtreecommitdiff
path: root/src/arch/arm/faults.hh
diff options
context:
space:
mode:
authorGiacomo Travaglini <giacomo.travaglini@arm.com>2019-10-09 14:53:38 +0100
committerGiacomo Travaglini <giacomo.travaglini@arm.com>2019-11-05 16:31:57 +0000
commit76b10e2b4abf36e441707e7e075ade75b11ab667 (patch)
treeb54452fdeb47c20de2da79c283cb57f86421d946 /src/arch/arm/faults.hh
parent75a127e8ba8885c7112fa92de5d81fa024981280 (diff)
downloadgem5-76b10e2b4abf36e441707e7e075ade75b11ab667.tar.xz
arch-arm: Annotate original address in CMOs
This is needed when a CMO triggers an exception (e.g. DataAbort) In that case the faulting address should be the one encoded in the instruction rather than the cacheline address: According to armarm: If a memory fault that sets FAR_EL1 is generated from a data cache maintenance or other DC instruction, FAR_EL1[63:0] holds the address specified in the register argument of the instruction. Change-Id: I6d0dadbef6e70db57438b01a76c5def3bdd2d974 Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22443 Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/arch/arm/faults.hh')
-rw-r--r--src/arch/arm/faults.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/arm/faults.hh b/src/arch/arm/faults.hh
index 645a461fe..3f61bc722 100644
--- a/src/arch/arm/faults.hh
+++ b/src/arch/arm/faults.hh
@@ -137,6 +137,10 @@ class ArmFault : public FaultBase
SSE, // DataAbort: Syndrome Sign Extend
SRT, // DataAbort: Syndrome Register Transfer
CM, // DataAbort: Cache Maintenance/Address Translation Op
+ OFA, // DataAbort: Override fault Address. This is needed when
+ // the abort is triggered by a CMO. The faulting address is
+ // then the address specified in the register argument of the
+ // instruction and not the cacheline address (See FAR doc)
// AArch64 only
SF, // DataAbort: width of the accessed register is SixtyFour