From cc52235454bc1bf60100e15043d89019b857d134 Mon Sep 17 00:00:00 2001 From: Jason Lowe-Power Date: Mon, 2 Oct 2017 17:22:32 -0700 Subject: [PATCH] cpu-o3: Add M5_VAR_USED to variable Fixes compile error for gem5.fast on CLANG due to unused variable. Change-Id: Iabe777a27d75ee8bfa7b214fff577aed3c7582c7 Signed-off-by: Jason Lowe-Power Reviewed-on: https://gem5-review.googlesource.com/4980 Reviewed-by: Nikos Nikoleris --- src/cpu/o3/scoreboard.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu/o3/scoreboard.hh b/src/cpu/o3/scoreboard.hh index 1012bae59..f09b19540 100644 --- a/src/cpu/o3/scoreboard.hh +++ b/src/cpu/o3/scoreboard.hh @@ -61,7 +61,7 @@ class Scoreboard std::vector regScoreBoard; /** The number of actual physical registers */ - unsigned numPhysRegs; + unsigned M5_CLASS_VAR_USED numPhysRegs; public: /** Constructs a scoreboard. -- 2.30.2