dev-arm: Improve fault message on SMMUv3 translation fault
authorMarc Mari Barcelo <marc.maribarcelo@arm.com>
Wed, 18 Sep 2019 17:17:09 +0000 (18:17 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Wed, 2 Oct 2019 15:55:06 +0000 (15:55 +0000)
Change-Id: Ib1d7ae73951b52f2378f8bd50e804d3237f74074
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21303
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/dev/arm/smmu_v3_transl.cc

index b2868268699091ccc3192692c7f2911f7b9dff34..10ded1a5c4b9373bb3ad04332c4b4a65da8a9c6c 100644 (file)
@@ -226,7 +226,10 @@ SMMUTranslationProcess::main(Yield &yield)
         hazardIdRelease();
 
         if (tr.fault != FAULT_NONE)
-            panic("fault\n");
+            panic("Translation Fault (addr=%#x, size=%#x, sid=%d, ssid=%d, "
+                    "isWrite=%d, isPrefetch=%d, isAtsRequest=%d)\n",
+                    request.addr, request.size, request.sid, request.ssid,
+                    request.isWrite, request.isPrefetch, request.isAtsRequest);
 
         completeTransaction(yield, tr);
     }