systemc: Override notifyWork for timeout/event_and_list sensitivities.
authorGabe Black <gabeblack@google.com>
Wed, 22 Aug 2018 21:28:37 +0000 (14:28 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 25 Sep 2018 23:55:10 +0000 (23:55 +0000)
commit71eeee982485916df7a849d1ebd67525fac3cd86
tree3b7af0d455776df0a9b0e74448efd33d3f3616d5
parentc42dfdeda8ca198bf076817431f41d24463e1cda
systemc: Override notifyWork for timeout/event_and_list sensitivities.

The notifyWork function for SensitivityEventAndList assumes it's
being triggered by an event which is part of its list, but when
SensitivityTimeoutAndEventAndList triggers it might be from an event
or from a timeout. This change overrides notifyWork for that class and
makes it delegate to notifyWork for the subclasses depending on whether
there's an event pointer.

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