systemc: Make sure sc_start waits for simulation even when starving.
authorGabe Black <gabeblack@google.com>
Sat, 18 Aug 2018 00:30:31 +0000 (17:30 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 25 Sep 2018 23:51:31 +0000 (23:51 +0000)
commita56dbe9338272273ac576514685e1c01ded173a2
tree3184fc6bb33a20268c12ea8bd3f2b4c5330f5656
parentdd30c7ef763e01e52db5d6a9f9b0c9309fab9d4f
systemc: Make sure sc_start waits for simulation even when starving.

Even if the simulation would return from sc_start immediately because
of starvation, this change ensures that sc_start gives control back
to gem5 so that the scheduler will have a chance to set up
sensitivities, etc., before things get torn down.

Change-Id: I39b1fd704fcbe12c299cad9dbd30258e8fe9d032
Reviewed-on: https://gem5-review.googlesource.com/12218
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/systemc/core/scheduler.cc