diff options
Diffstat (limited to 'src/arch/power')
-rw-r--r-- | src/arch/power/remote_gdb.cc | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/arch/power/remote_gdb.cc b/src/arch/power/remote_gdb.cc index 7bdd3ba6a..b4082e0ee 100644 --- a/src/arch/power/remote_gdb.cc +++ b/src/arch/power/remote_gdb.cc @@ -162,16 +162,13 @@ RemoteGDB::RemoteGDB(System *_system, ThreadContext *tc, int _port) bool RemoteGDB::acc(Addr va, size_t len) { - TlbEntry entry; - //Check to make sure the first byte is mapped into the processes address - //space. At the time of this writing, the acc() check is used when - //processing the MemR/MemW packets before actually asking the translating - //port proxy to read/writeBlob. I (bgs) am not convinced the first byte - //check is enough. - if (FullSystem) - panic("acc not implemented for POWER FS!"); - else - return context()->getProcessPtr()->pTable->lookup(va, entry); + // Check to make sure the first byte is mapped into the processes address + // space. At the time of this writing, the acc() check is used when + // processing the MemR/MemW packets before actually asking the translating + // port proxy to read/writeBlob. I (bgs) am not convinced the first byte + // check is enough. + panic_if(FullSystem, "acc not implemented for POWER FS!"); + return context()->getProcessPtr()->pTable->lookup(va) != nullptr; } void |