1/* 2 * Copyright (c) 2011-2014 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 310 unchanged lines hidden (view full) --- 319 remoteGDB[context_id]->replaceThreadContext(tc); 320} 321 322Addr 323System::allocPhysPages(int npages) 324{ 325 Addr return_addr = pagePtr << PageShift; 326 pagePtr += npages; |
327 328 Addr next_return_addr = pagePtr << PageShift; 329 330 AddrRange m5opRange(0xffff0000, 0xffffffff); 331 if (m5opRange.contains(next_return_addr)) { 332 warn("Reached m5ops MMIO region\n"); 333 return_addr = 0xffffffff; 334 pagePtr = 0xffffffff >> PageShift; 335 } 336 |
337 if ((pagePtr << PageShift) > physmem.totalSize()) 338 fatal("Out of memory, please increase size of physical memory."); 339 return return_addr; 340} 341 342Addr 343System::memSize() const 344{ --- 151 unchanged lines hidden --- |