cpu-o3: Add M5_VAR_USED to variable
authorJason Lowe-Power <jason@lowepower.com>
Tue, 3 Oct 2017 00:22:32 +0000 (17:22 -0700)
committerJason Lowe-Power <jason@lowepower.com>
Thu, 19 Oct 2017 23:03:58 +0000 (23:03 +0000)
Fixes compile error for gem5.fast on CLANG due to unused variable.

Change-Id: Iabe777a27d75ee8bfa7b214fff577aed3c7582c7
Signed-off-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-on: https://gem5-review.googlesource.com/4980
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
src/cpu/o3/scoreboard.hh

index 1012bae5958f54550c7fa82b3d0253117e5a340f..f09b19540419e80f717bfac54fd77f855d2bb687 100644 (file)
@@ -61,7 +61,7 @@ class Scoreboard
     std::vector<bool> regScoreBoard;
 
     /** The number of actual physical registers */
-    unsigned numPhysRegs;
+    unsigned M5_CLASS_VAR_USED numPhysRegs;
 
   public:
     /** Constructs a scoreboard.