Giacomo Travaglini has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/30594 )

Change subject: sim: Fix -Werror=maybe-uninitialized in system.cc
......................................................................

sim: Fix -Werror=maybe-uninitialized in system.cc

The patch is simply initializing it to 0 before unserializing
the real value

Change-Id: I4e19eeafa9334116b440948af1943f3835803671
Signed-off-by: Giacomo Travaglini <giacomo.travagl...@arm.com>
---
M src/sim/system.cc
1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/src/sim/system.cc b/src/sim/system.cc
index 4133412..6e5975e 100644
--- a/src/sim/system.cc
+++ b/src/sim/system.cc
@@ -447,7 +447,7 @@
     UNSERIALIZE_SCALAR(pagePtr);

     for (auto &t: threads.threads) {
-        Tick when;
+        Tick when = 0;
         ContextID id = t.context->contextId();
         if (!optParamIn(cp, csprintf("quiesceEndTick_%d", id), when) ||
                 !when || !t.resumeEvent) {

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/30594
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: I4e19eeafa9334116b440948af1943f3835803671
Gerrit-Change-Number: 30594
Gerrit-PatchSet: 1
Gerrit-Owner: Giacomo Travaglini <giacomo.travagl...@arm.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to