From 7bd57d5a94acbdcb64b4927ea6a673cae18adcc0 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 9 Oct 2019 17:47:19 -0700 Subject: 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 Maintainer: Andreas Sandberg Tested-by: kokoro --- src/base/remote_gdb.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/base') diff --git a/src/base/remote_gdb.cc b/src/base/remote_gdb.cc index 77b3fbc20..d0ccde566 100644 --- a/src/base/remote_gdb.cc +++ b/src/base/remote_gdb.cc @@ -175,8 +175,8 @@ class HardBreakpoint : public PCEvent int refcount; public: - HardBreakpoint(BaseRemoteGDB *_gdb, PCEventQueue *q, Addr pc) - : PCEvent(q, "HardBreakpoint Event", pc), + HardBreakpoint(BaseRemoteGDB *_gdb, PCEventScope *s, Addr pc) + : PCEvent(s, "HardBreakpoint Event", pc), gdb(_gdb), refcount(0) { DPRINTF(GDBMisc, "creating hardware breakpoint at %#x\n", evpc); -- cgit v1.2.3