systemc: Fix some issues with starvation checks.
authorGabe Black <gabeblack@google.com>
Sun, 26 Aug 2018 22:34:31 +0000 (15:34 -0700)
committerGabe Black <gabeblack@google.com>
Wed, 26 Sep 2018 00:02:52 +0000 (00:02 +0000)
commit9b6119a6a31f8597eebdc8bb469fd9f407ffa5e4
treec23a05e787a4195f832577eefb8f968b1efdfe3c
parent1712dd596bb70ab12a0f07737b496107f91a06c5
systemc: Fix some issues with starvation checks.

Make sure we check for starvation after timed notifications and at the
very end of delta cycles (after delta notifications, not before). Also
reverse the order of starvation checks (whether they apply at all, then
if they're satisfied) to make those checks faster. Checking a bool
is a lot easier than checking if a bunch of other structures are
empty.

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