systemc: Fix the implementation of sc_event::triggered.
authorGabe Black <gabeblack@google.com>
Thu, 20 Sep 2018 09:51:54 +0000 (02:51 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 16 Oct 2018 00:25:15 +0000 (00:25 +0000)
commit1e17aca38ea0c9cdcc4445404bf8b789a360ce13
treec83695e6569819bcfaa5ebeba2ebb7890c2ce9a9
parent638293cd62fca2d3f133169083977fbbfcc989cc
systemc: Fix the implementation of sc_event::triggered.

This function just returned false. The new implementation uses the
scheduler's changeStamp function to keep track of how recently the
event was triggered so it can return return the right value.

Change-Id: Idf61cd459e53e224a33d3e53c16210f5e0a99a3a
Reviewed-on: https://gem5-review.googlesource.com/c/12825
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/systemc/core/event.cc
src/systemc/core/event.hh