systemc: Don't schedule the update phase if the event queue is null.
authorGabe Black <gabeblack@google.com>
Wed, 8 Aug 2018 09:56:00 +0000 (02:56 -0700)
committerGabe Black <gabeblack@google.com>
Thu, 20 Sep 2018 01:43:43 +0000 (01:43 +0000)
commit9116aa29946c61dacb1b3e67c805adadc79d4162
tree55f6963e82e55daa720f5118121100cbcbe8a3af
parent081af5ec9c6dff33081ccd00f4ec1d494fa6af3c
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>
src/systemc/core/scheduler.cc