remote_gdb.cc (11963:3fb6bb58e6a4) remote_gdb.cc (12031:46116545e745)
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

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

144#include "debug/GDBAcc.hh"
145#include "mem/page_table.hh"
146#include "sim/full_system.hh"
147
148using namespace std;
149using namespace RiscvISA;
150
151RemoteGDB::RemoteGDB(System *_system, ThreadContext *tc)
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

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

144#include "debug/GDBAcc.hh"
145#include "mem/page_table.hh"
146#include "sim/full_system.hh"
147
148using namespace std;
149using namespace RiscvISA;
150
151RemoteGDB::RemoteGDB(System *_system, ThreadContext *tc)
152 : BaseRemoteGDB(_system, tc)
152 : BaseRemoteGDB(_system, tc), regCache(this)
153{
154}
155
156bool
157RemoteGDB::acc(Addr va, size_t len)
158{
159 TlbEntry entry;
160 if (FullSystem)

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

196 context->setMiscReg(MISCREG_FRM, r.frm);
197 context->setMiscReg(MISCREG_FCSR, r.fcsr);
198 for (int i = ExplicitCSRs; i < NumMiscRegs; i++)
199 context->setMiscReg(i, r.csr[i - ExplicitCSRs]);
200}
201
202RemoteGDB::BaseGdbRegCache*
203RemoteGDB::gdbRegs() {
153{
154}
155
156bool
157RemoteGDB::acc(Addr va, size_t len)
158{
159 TlbEntry entry;
160 if (FullSystem)

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

196 context->setMiscReg(MISCREG_FRM, r.frm);
197 context->setMiscReg(MISCREG_FCSR, r.fcsr);
198 for (int i = ExplicitCSRs; i < NumMiscRegs; i++)
199 context->setMiscReg(i, r.csr[i - ExplicitCSRs]);
200}
201
202RemoteGDB::BaseGdbRegCache*
203RemoteGDB::gdbRegs() {
204 return new RiscvGdbRegCache(this);
204 return &regCache;
205}
205}