remote_gdb.cc (12449:2260f4a68210) | remote_gdb.cc (12455:c88f0b37f433) |
---|---|
1/* 2 * Copyright 2015 LabWare 3 * Copyright 2014 Google, Inc. 4 * Copyright (c) 2010 ARM Limited 5 * All rights reserved 6 * 7 * The license below extends only to copyright in the software and shall 8 * not be construed as granting a license to any other intellectual --- 148 unchanged lines hidden (view full) --- 157} 158 159/* 160 * Determine if the mapping at va..(va+len) is valid. 161 */ 162bool 163RemoteGDB::acc(Addr va, size_t len) 164{ | 1/* 2 * Copyright 2015 LabWare 3 * Copyright 2014 Google, Inc. 4 * Copyright (c) 2010 ARM Limited 5 * All rights reserved 6 * 7 * The license below extends only to copyright in the software and shall 8 * not be construed as granting a license to any other intellectual --- 148 unchanged lines hidden (view full) --- 157} 158 159/* 160 * Determine if the mapping at va..(va+len) is valid. 161 */ 162bool 163RemoteGDB::acc(Addr va, size_t len) 164{ |
165 TlbEntry entry; 166 //Check to make sure the first byte is mapped into the processes address 167 //space. 168 if (FullSystem) 169 panic("acc not implemented for MIPS FS!"); 170 else 171 return context()->getProcessPtr()->pTable->lookup(va, entry); | 165 // Check to make sure the first byte is mapped into the processes address 166 // space. 167 panic_if(FullSystem, "acc not implemented for MIPS FS!"); 168 return context()->getProcessPtr()->pTable->lookup(va) != nullptr; |
172} 173 174void 175RemoteGDB::MipsGdbRegCache::getRegs(ThreadContext *context) 176{ 177 DPRINTF(GDBAcc, "getregs in remotegdb \n"); 178 179 for (int i = 0; i < 32; i++) r.gpr[i] = context->readIntReg(i); --- 33 unchanged lines hidden --- | 169} 170 171void 172RemoteGDB::MipsGdbRegCache::getRegs(ThreadContext *context) 173{ 174 DPRINTF(GDBAcc, "getregs in remotegdb \n"); 175 176 for (int i = 0; i < 32; i++) r.gpr[i] = context->readIntReg(i); --- 33 unchanged lines hidden --- |