remote_gdb.cc (12031:46116545e745) remote_gdb.cc (12406:86bde4a026b5)
1/*
2 * Copyright 2015 LabWare
3 * Copyright 2014 Google, Inc.
4 * Copyright (c) 2007 The Hewlett-Packard Development Company
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

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

67RemoteGDB::RemoteGDB(System *_system, ThreadContext *c) :
68 BaseRemoteGDB(_system, c), regCache32(this), regCache64(this)
69{}
70
71bool
72RemoteGDB::acc(Addr va, size_t len)
73{
74 if (FullSystem) {
1/*
2 * Copyright 2015 LabWare
3 * Copyright 2014 Google, Inc.
4 * Copyright (c) 2007 The Hewlett-Packard Development Company
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

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

67RemoteGDB::RemoteGDB(System *_system, ThreadContext *c) :
68 BaseRemoteGDB(_system, c), regCache32(this), regCache64(this)
69{}
70
71bool
72RemoteGDB::acc(Addr va, size_t len)
73{
74 if (FullSystem) {
75 Walker *walker = context->getDTBPtr()->getWalker();
75 Walker *walker = dynamic_cast<TLB *>(
76 context->getDTBPtr())->getWalker();
76 unsigned logBytes;
77 Fault fault = walker->startFunctional(context, va, logBytes,
78 BaseTLB::Read);
79 if (fault != NoFault)
80 return false;
81
82 Addr endVa = va + len - 1;
83 if ((va & ~mask(logBytes)) == (endVa & ~mask(logBytes)))

--- 138 unchanged lines hidden ---
77 unsigned logBytes;
78 Fault fault = walker->startFunctional(context, va, logBytes,
79 BaseTLB::Read);
80 if (fault != NoFault)
81 return false;
82
83 Addr endVa = va + len - 1;
84 if ((va & ~mask(logBytes)) == (endVa & ~mask(logBytes)))

--- 138 unchanged lines hidden ---