From 280363ec6abd8be50477ceb72b1b07922b2240dd Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Mon, 25 May 2020 14:28:55 -0700 Subject: [PATCH] arch-arm,misc: Add M5_CLASS_VAR_USED to faultTick Clang compilers returned an error that faultTick was unused. Adding M5_CLASS_VAR_USED resolves this. Change-Id: I97657b45997d2f1c7416b973cd9c02ae2d92b725 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/29453 Maintainer: Jason Lowe-Power Reviewed-by: Giacomo Travaglini Tested-by: kokoro --- src/dev/arm/smmu_v3_transl.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dev/arm/smmu_v3_transl.hh b/src/dev/arm/smmu_v3_transl.hh index 243e54e26..d72c44c80 100644 --- a/src/dev/arm/smmu_v3_transl.hh +++ b/src/dev/arm/smmu_v3_transl.hh @@ -38,6 +38,7 @@ #ifndef __DEV_ARM_SMMU_V3_TRANSL_HH__ #define __DEV_ARM_SMMU_V3_TRANSL_HH__ +#include "base/compiler.hh" #include "dev/arm/smmu_v3_proc.hh" #include "dev/arm/smmu_v3_ptops.hh" #include "dev/arm/smmu_v3_slaveifc.hh" @@ -96,7 +97,7 @@ class SMMUTranslationProcess : public SMMUProcess TranslContext context; Tick recvTick; - Tick faultTick; + Tick M5_CLASS_VAR_USED faultTick; virtual void main(Yield &yield); -- 2.30.2