cpu: Create a PCEventScope class to abstract the scope of PCEvents.
authorGabe Black <gabeblack@google.com>
Thu, 10 Oct 2019 00:47:19 +0000 (17:47 -0700)
committerGabe Black <gabeblack@google.com>
Fri, 25 Oct 2019 22:42:31 +0000 (22:42 +0000)
commit7bd57d5a94acbdcb64b4927ea6a673cae18adcc0
tree1171079d0af63c62336bc1036e089fff95888e6a
parent69930afa9b63c25baab86ff5fbe632fc02ce5369
cpu: Create a PCEventScope class to abstract the scope of PCEvents.

This abstraction will allow scheduling PCEvents for a particular
ThreadContext, all contexts on a CPU, all contexts in a system, etc.,
and delegates scheduling and removing events to each particular scope.

Right now the PCEventQueue is the only implementor of the PCEventSCope
interface.

Change-Id: I8fb62931511136229915c2e19d36aae7ffdec9df
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22099
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
13 files changed:
src/arch/alpha/freebsd/system.hh
src/arch/alpha/idle_event.hh
src/arch/alpha/linux/system.hh
src/arch/arm/linux/system.hh
src/arch/mips/idle_event.hh
src/arch/mips/linux/system.hh
src/arch/riscv/idle_event.hh
src/base/remote_gdb.cc
src/cpu/pc_event.cc
src/cpu/pc_event.hh
src/kern/freebsd/events.hh
src/kern/linux/events.hh
src/kern/system_events.hh