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. At the time of this writing, the acc() check is used when
168 //processing the MemR/MemW packets before actually asking the translating
169 //port proxy to read/writeBlob. I (bgs) am not convinced the first byte
170 //check is enough.
171 if (FullSystem)
172 panic("acc not implemented for POWER FS!");
173 else
174 return context()->getProcessPtr()->pTable->lookup(va, entry);
165 // Check to make sure the first byte is mapped into the processes address
166 // space. At the time of this writing, the acc() check is used when
167 // processing the MemR/MemW packets before actually asking the translating
168 // port proxy to read/writeBlob. I (bgs) am not convinced the first byte
169 // check is enough.
170 panic_if(FullSystem, "acc not implemented for POWER FS!");
171 return context()->getProcessPtr()->pTable->lookup(va) != nullptr;
175}
176
177void
178RemoteGDB::PowerGdbRegCache::getRegs(ThreadContext *context)
179{
180 DPRINTF(GDBAcc, "getRegs in remotegdb \n");
181
182 // Default order on 32-bit PowerPC:

--- 42 unchanged lines hidden ---
172}
173
174void
175RemoteGDB::PowerGdbRegCache::getRegs(ThreadContext *context)
176{
177 DPRINTF(GDBAcc, "getRegs in remotegdb \n");
178
179 // Default order on 32-bit PowerPC:

--- 42 unchanged lines hidden ---