diff options
Diffstat (limited to 'src/arch/power')
-rw-r--r-- | src/arch/power/remote_gdb.cc | 11 | ||||
-rw-r--r-- | src/arch/power/remote_gdb.hh | 2 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/arch/power/remote_gdb.cc b/src/arch/power/remote_gdb.cc index c85aa38f2..7bdd3ba6a 100644 --- a/src/arch/power/remote_gdb.cc +++ b/src/arch/power/remote_gdb.cc @@ -151,8 +151,8 @@ using namespace std; using namespace PowerISA; -RemoteGDB::RemoteGDB(System *_system, ThreadContext *tc) - : BaseRemoteGDB(_system, tc), regCache(this) +RemoteGDB::RemoteGDB(System *_system, ThreadContext *tc, int _port) + : BaseRemoteGDB(_system, tc, _port), regCache(this) { } @@ -171,7 +171,7 @@ RemoteGDB::acc(Addr va, size_t len) if (FullSystem) panic("acc not implemented for POWER FS!"); else - return context->getProcessPtr()->pTable->lookup(va, entry); + return context()->getProcessPtr()->pTable->lookup(va, entry); } void @@ -216,8 +216,9 @@ RemoteGDB::PowerGdbRegCache::setRegs(ThreadContext *context) const context->setIntReg(INTREG_XER, betoh(r.xer)); } -RemoteGDB::BaseGdbRegCache* -RemoteGDB::gdbRegs() { +BaseGdbRegCache* +RemoteGDB::gdbRegs() +{ return ®Cache; } diff --git a/src/arch/power/remote_gdb.hh b/src/arch/power/remote_gdb.hh index 9fefb345b..2894fc124 100644 --- a/src/arch/power/remote_gdb.hh +++ b/src/arch/power/remote_gdb.hh @@ -79,7 +79,7 @@ class RemoteGDB : public BaseRemoteGDB PowerGdbRegCache regCache; public: - RemoteGDB(System *_system, ThreadContext *tc); + RemoteGDB(System *_system, ThreadContext *tc, int _port); BaseGdbRegCache *gdbRegs(); }; |