Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/12078
Change subject: systemc: Don't schedule the update phase if the event queue
is null.
......................................................................
systemc: Don't schedule the update phase if the event queue is null.
That happens when an update is requested before the initialization
phase has started. In that case, the update phase will be manually run
and no event needs to be scheduled, even if that was possible.
Change-Id: I2008e29064d282f82bd1935dbe5b94407aa925b0
---
M src/systemc/core/scheduler.cc
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/systemc/core/scheduler.cc b/src/systemc/core/scheduler.cc
index 7d2e9ef..44c5646 100644
--- a/src/systemc/core/scheduler.cc
+++ b/src/systemc/core/scheduler.cc
@@ -143,7 +143,8 @@
Scheduler::requestUpdate(Channel *c)
{
updateList.pushLast(c);
- scheduleReadyEvent();
+ if (eq)
+ scheduleReadyEvent();
}
void
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/12078
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I2008e29064d282f82bd1935dbe5b94407aa925b0
Gerrit-Change-Number: 12078
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev