arch-arm,misc: Add M5_CLASS_VAR_USED to faultTick
authorBobby R. Bruce <bbruce@ucdavis.edu>
Mon, 25 May 2020 21:28:55 +0000 (14:28 -0700)
committerBobby R. Bruce <bbruce@ucdavis.edu>
Thu, 28 May 2020 04:48:54 +0000 (04:48 +0000)
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 <power.jg@gmail.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/dev/arm/smmu_v3_transl.hh

index 243e54e26432248310bba76c43ad1003175b0ef4..d72c44c800ace14eb75c071b2e6a3fba29617897 100644 (file)
@@ -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);