From 2e98297d6218cce54f88706a1860f3bb1cd68b39 Mon Sep 17 00:00:00 2001 From: Marc Mari Barcelo Date: Wed, 18 Sep 2019 18:17:09 +0100 Subject: [PATCH] dev-arm: Improve fault message on SMMUv3 translation fault Change-Id: Ib1d7ae73951b52f2378f8bd50e804d3237f74074 Reviewed-by: Giacomo Travaglini Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21303 Reviewed-by: Andreas Sandberg Maintainer: Andreas Sandberg Tested-by: kokoro --- src/dev/arm/smmu_v3_transl.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dev/arm/smmu_v3_transl.cc b/src/dev/arm/smmu_v3_transl.cc index b28682686..10ded1a5c 100644 --- a/src/dev/arm/smmu_v3_transl.cc +++ b/src/dev/arm/smmu_v3_transl.cc @@ -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); } -- 2.30.2