1/* 2 * Copyright 2014 Google Inc. 3 * Copyright (c) 2010, 2013 ARM Limited 4 * All rights reserved 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 128 unchanged lines hidden (view full) --- 137 138#include "arch/arm/decoder.hh" 139#include "arch/arm/pagetable.hh" 140#include "arch/arm/registers.hh" 141#include "arch/arm/remote_gdb.hh" 142#include "arch/arm/system.hh" 143#include "arch/arm/utility.hh" 144#include "arch/arm/vtophys.hh" |
145#include "base/chunk_generator.hh" |
146#include "base/intmath.hh" 147#include "base/remote_gdb.hh" 148#include "base/socket.hh" 149#include "base/trace.hh" 150#include "cpu/static_inst.hh" 151#include "cpu/thread_context.hh" 152#include "cpu/thread_state.hh" 153#include "debug/GDBAcc.hh" --- 14 unchanged lines hidden (view full) --- 168 169/* 170 * Determine if the mapping at va..(va+len) is valid. 171 */ 172bool 173RemoteGDB::acc(Addr va, size_t len) 174{ 175 if (FullSystem) { |
176 for (ChunkGenerator gen(va, len, PageBytes); !gen.done(); gen.next()) { 177 if (!virtvalid(context, gen.addr())) { 178 DPRINTF(GDBAcc, "acc: %#x mapping is invalid\n", va); 179 return false; |
180 } |
181 } |
182 183 DPRINTF(GDBAcc, "acc: %#x mapping is valid\n", va); 184 return true; 185 } else { 186 TlbEntry entry; 187 //Check to make sure the first byte is mapped into the processes address 188 //space. 189 if (context->getProcessPtr()->pTable->lookup(va, entry)) --- 130 unchanged lines hidden --- |