1/* 2 * Copyright (c) 2003-2006 The Regents of The University of Michigan 3 * Copyright (c) 2011 Regents of the University of California 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 247 unchanged lines hidden (view full) --- 256 } 257 258 threadContexts[context_id] = tc; 259 if (context_id < remoteGDB.size()) 260 remoteGDB[context_id]->replaceThreadContext(tc); 261} 262 263Addr |
264System::allocPhysPages(int npages) |
265{ 266 Addr return_addr = pagePtr << LogVMPageSize; |
267 pagePtr += npages; |
268 if (return_addr >= physmem->size()) 269 fatal("Out of memory, please increase size of physical memory."); 270 return return_addr; 271} 272 273Addr 274System::memSize() 275{ --- 71 unchanged lines hidden --- |