systemc: Handle event notifications scheduled before sc_start.
authorGabe Black <gabeblack@google.com>
Fri, 20 Jul 2018 00:32:34 +0000 (17:32 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 11 Sep 2018 21:41:55 +0000 (21:41 +0000)
commit8b8b75092a2ef84a98132518e5da55e559e942f7
tree89ffda0f1fc4b46dc792448181e85cf68bb3c04c
parentbc46b4ac03849706c32a8d6a3383d56373983eab
systemc: Handle event notifications scheduled before sc_start.

After sc_start is called, gem5 has run far enough to have an event
queue to schedule the notification events on. Before then, it's still
legal to request a timed notification. The scheduler should keep track
of those requests, and once an event queue is available it should
add them to it.

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