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

--- 142 unchanged lines hidden (view full) ---

151RemoteGDB::RemoteGDB(System *_system, ThreadContext *tc, int _port)
152 : BaseRemoteGDB(_system, tc, _port), regCache(this)
153{
154}
155
156bool
157RemoteGDB::acc(Addr va, size_t len)
158{
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

--- 142 unchanged lines hidden (view full) ---

151RemoteGDB::RemoteGDB(System *_system, ThreadContext *tc, int _port)
152 : BaseRemoteGDB(_system, tc, _port), regCache(this)
153{
154}
155
156bool
157RemoteGDB::acc(Addr va, size_t len)
158{
159 TlbEntry entry;
160 if (FullSystem)
161 panic("acc not implemented for RISCV FS!");
162 else
163 return context()->getProcessPtr()->pTable->lookup(va, entry);
159 panic_if(FullSystem, "acc not implemented for RISCV FS!");
160 return context()->getProcessPtr()->pTable->lookup(va) != nullptr;
164}
165
166void
167RemoteGDB::RiscvGdbRegCache::getRegs(ThreadContext *context)
168{
169 DPRINTF(GDBAcc, "getregs in remotegdb, size %lu\n", size());
170 for (int i = 0; i < NumIntArchRegs; i++)
171 r.gpr[i] = context->readIntReg(i);

--- 35 unchanged lines hidden ---
161}
162
163void
164RemoteGDB::RiscvGdbRegCache::getRegs(ThreadContext *context)
165{
166 DPRINTF(GDBAcc, "getregs in remotegdb, size %lu\n", size());
167 for (int i = 0; i < NumIntArchRegs; i++)
168 r.gpr[i] = context->readIntReg(i);

--- 35 unchanged lines hidden ---