Deleted Added
sdiff udiff text old ( 13611:c8b7847b4171 ) new ( 14186:146c010fa764 )
full compact
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

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

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);
169 r.pc = context->pcState().pc();
170}
171
172void
173RemoteGDB::RiscvGdbRegCache::setRegs(ThreadContext *context) const
174{
175 DPRINTF(GDBAcc, "setregs in remotegdb \n");
176 for (int i = 0; i < NumIntArchRegs; i++)
177 context->setIntReg(i, r.gpr[i]);
178 context->pcState(r.pc);
179}
180
181BaseGdbRegCache*
182RemoteGDB::gdbRegs()
183{
184 return &regCache;
185}