From: Bobby R. Bruce Date: Sun, 12 Jul 2020 20:27:00 +0000 (-0700) Subject: sim: Added M5_VAR_USED to unused `cpu` var X-Git-Tag: v20.1.0.0~459 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=191212a6dcf27badeafdb19f5037014391dd19d1;p=gem5.git 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 --- 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"