diff options
author | Gabe Black <gabeblack@google.com> | 2018-08-08 02:56:00 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-09-20 01:43:43 +0000 |
commit | 9116aa29946c61dacb1b3e67c805adadc79d4162 (patch) | |
tree | 55f6963e82e55daa720f5118121100cbcbe8a3af | |
parent | 081af5ec9c6dff33081ccd00f4ec1d494fa6af3c (diff) | |
download | gem5-9116aa29946c61dacb1b3e67c805adadc79d4162.tar.xz |
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 <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
-rw-r--r-- | src/systemc/core/scheduler.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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 |