fastmodel: Add a utility class which makes it easier to watch signals.
authorGabe Black <gabeblack@google.com>
Wed, 28 Aug 2019 06:34:31 +0000 (23:34 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 1 Oct 2019 22:08:58 +0000 (22:08 +0000)
commit0c6afe0d0ab22221911619cd5eef3589e0e04e08
tree7a898e729c74960684a0d33b55cf2c1a3744b094
parent54cf33fbf392f4dc47c8c3559e6f6f10ae3288dc
fastmodel: Add a utility class which makes it easier to watch signals.

These signals come from the exported virtual subsystem and could signal
interrupts, etc. The new SignalReceiver class makes it easier to watch
those signals and perform some behavior when they change without having
to bring along a lot of systemc baggage.

Change-Id: I09651de1dd0e7340a61779aaf080c695ce299fd4
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21043
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/fastmodel/common/signal_receiver.hh [new file with mode: 0644]