From ced716942a6646594f23674a9462bfe98c29e2e9 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Brucker Date: Wed, 27 Apr 2022 12:15:43 +0100 Subject: hw/arm/smmuv3: Cache event fault record The Record bit in the Context Descriptor tells the SMMU to report fault events to the event queue. Since we don't cache the Record bit at the moment, access faults from a cached Context Descriptor are never reported. Store the Record bit in the cached SMMUTransCfg. Fixes: 9bde7f0674fe ("hw/arm/smmuv3: Implement translate callback") Signed-off-by: Jean-Philippe Brucker Reviewed-by: Richard Henderson Reviewed-by: Eric Auger Message-id: 20220427111543.124620-1-jean-philippe@linaro.org Signed-off-by: Peter Maydell --- include/hw/arm/smmu-common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/hw/arm/smmu-common.h') diff --git a/include/hw/arm/smmu-common.h b/include/hw/arm/smmu-common.h index 706be3c6d0..21e62342e9 100644 --- a/include/hw/arm/smmu-common.h +++ b/include/hw/arm/smmu-common.h @@ -71,6 +71,7 @@ typedef struct SMMUTransCfg { bool disabled; /* smmu is disabled */ bool bypassed; /* translation is bypassed */ bool aborted; /* translation is aborted */ + bool record_faults; /* record fault events */ uint64_t ttb; /* TT base address */ uint8_t oas; /* output address width */ uint8_t tbi; /* Top Byte Ignore */ -- cgit v1.2.3