From 191212a6dcf27badeafdb19f5037014391dd19d1 Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Sun, 12 Jul 2020 13:27:00 -0700 Subject: [PATCH] sim: Added M5_VAR_USED to unused `cpu` var The `BaseCPU cpu` variable unused when compiling gem5.fast. This causes the compilation to fail. Adding the M5_VAR_USED resolves this issue. Change-Id: I62588563e9cde384e30755742d6bc754e819d7f4 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/31214 Reviewed-by: Daniel Carvalho Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- src/sim/system.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sim/system.cc b/src/sim/system.cc index 4e3416e5b..8185f13e9 100644 --- a/src/sim/system.cc +++ b/src/sim/system.cc @@ -45,6 +45,7 @@ #include "arch/remote_gdb.hh" #include "arch/utility.hh" +#include "base/compiler.hh" #include "base/loader/object_file.hh" #include "base/loader/symtab.hh" #include "base/str.hh" -- 2.30.2