summaryrefslogtreecommitdiff
path: root/src/base/remote_gdb.cc
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2019-10-14 15:31:26 -0700
committerGabe Black <gabeblack@google.com>2019-10-25 22:42:31 +0000
commita2a8dac5c2a26e91432415f409b55f04cff9c2e4 (patch)
tree5cdd34c965e349953d361582923f6467fb209382 /src/base/remote_gdb.cc
parentfd030fd9f5893e1ce198bf760ab4a7f2704d921b (diff)
downloadgem5-a2a8dac5c2a26e91432415f409b55f04cff9c2e4.tar.xz
cpu: Access inst events through ThreadContext instead of the CPU.
Also delete the CPU interface. Change-Id: I62a6b0a9a303d672f4083bdedf393f9f6d07331f Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22109 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com> Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/base/remote_gdb.cc')
-rw-r--r--src/base/remote_gdb.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/base/remote_gdb.cc b/src/base/remote_gdb.cc
index b45ef1037..9a1f7bf2b 100644
--- a/src/base/remote_gdb.cc
+++ b/src/base/remote_gdb.cc
@@ -753,18 +753,16 @@ BaseRemoteGDB::setTempBreakpoint(Addr bkpt)
void
BaseRemoteGDB::scheduleInstCommitEvent(Event *ev, int delta)
{
- auto *cpu = tc->getCpuPtr();
// Here "ticks" aren't simulator ticks which measure time, they're
// instructions committed by the CPU.
- cpu->scheduleInstCountEvent(tc->threadId(), ev,
- cpu->getCurrentInstCount(tc->threadId()) + delta);
+ tc->scheduleInstCountEvent(ev, tc->getCurrentInstCount() + delta);
}
void
BaseRemoteGDB::descheduleInstCommitEvent(Event *ev)
{
if (ev->scheduled())
- tc->getCpuPtr()->descheduleInstCountEvent(tc->threadId(), ev);
+ tc->descheduleInstCountEvent(ev);
}
std::map<char, BaseRemoteGDB::GdbCommand> BaseRemoteGDB::command_map = {