Bobby R. Bruce has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/31214 )

Change subject: sim: Added M5_VAR_USED to unused `cpu` var
......................................................................

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
---
M src/sim/system.cc
1 file changed, 2 insertions(+), 1 deletion(-)



diff --git a/src/sim/system.cc b/src/sim/system.cc
index 6e5975e..0c78170 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"
@@ -179,7 +180,7 @@
 {
     auto &t = thread(id);
 #   if THE_ISA != NULL_ISA
-    BaseCPU *cpu = t.context->getCpuPtr();
+    BaseCPU M5_VAR_USED *cpu = t.context->getCpuPtr();
     DPRINTFS(Quiesce, cpu, "quiesce()\n");
 #   endif
     t.quiesce();

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/31214
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I62588563e9cde384e30755742d6bc754e819d7f4
Gerrit-Change-Number: 31214
Gerrit-PatchSet: 1
Gerrit-Owner: Bobby R. Bruce <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to