arch-arm: Enable Debug IFSC when faulting to aarch64 mode
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 15 Feb 2018 13:31:52 +0000 (13:31 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 8 Mar 2018 10:11:36 +0000 (10:11 +0000)
Previous code was aborting simulation when a debug exception taken in
aarch64 mode was encountered. This because an invalid (0xff)
instruction fault status code was produced.

Change-Id: I289f93f672be70cfbdc404be536809835160bdaf
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/8363
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>

src/arch/arm/faults.cc

index a1952d664c093ae9e372a7e77b1ddb8dd68796ac..a048fa8b2ed46381f5a969d59f1dabab5b099d8b 100644 (file)
@@ -177,7 +177,7 @@ uint8_t ArmFault::aarch64FaultSources[] = {
     0x0d,  // PermissionL1
     0x0e,  // PermissionL2
     0x0f,  // PermissionL3
-    0xff,  // DebugEvent (INVALID)
+    0x22,  // DebugEvent
     0x10,  // SynchronousExternalAbort
     0x30,  // TLBConflictAbort
     0x18,  // SynchPtyErrOnMemoryAccess