From: Gabe Black Date: Wed, 8 Aug 2018 09:56:00 +0000 (-0700) Subject: systemc: Don't schedule the update phase if the event queue is null. X-Git-Tag: v19.0.0.0~1772 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9116aa29946c61dacb1b3e67c805adadc79d4162;p=gem5.git 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 --- 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