From: Bobby R. Bruce Date: Mon, 25 May 2020 21:28:55 +0000 (-0700) Subject: arch-arm,misc: Add M5_CLASS_VAR_USED to faultTick X-Git-Tag: v20.0.0.0~8 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=280363ec6abd8be50477ceb72b1b07922b2240dd;p=gem5.git 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 --- 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);