From 9116aa29946c61dacb1b3e67c805adadc79d4162 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 8 Aug 2018 02:56:00 -0700 Subject: [PATCH] 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 Reviewed-on: https://gem5-review.googlesource.com/12078 Reviewed-by: Gabe Black Maintainer: Gabe Black --- src/systemc/core/scheduler.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/systemc/core/scheduler.cc b/src/systemc/core/scheduler.cc index 7d2e9ef88..44c56467d 100644 --- a/src/systemc/core/scheduler.cc +++ b/src/systemc/core/scheduler.cc @@ -143,7 +143,8 @@ void Scheduler::requestUpdate(Channel *c) { updateList.pushLast(c); - scheduleReadyEvent(); + if (eq) + scheduleReadyEvent(); } void -- 2.30.2