sim: Added M5_VAR_USED to unused `cpu` var
authorBobby R. Bruce <bbruce@ucdavis.edu>
Sun, 12 Jul 2020 20:27:00 +0000 (13:27 -0700)
committerBobby R. Bruce <bbruce@ucdavis.edu>
Thu, 16 Jul 2020 02:44:26 +0000 (02:44 +0000)
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 <odanrc@yahoo.com.br>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/sim/system.cc

index 4e3416e5b0b42b8cc09d7b474baa6662494c53c5..8185f13e94678bbb6a216053c511e77055c395e5 100644 (file)
@@ -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"