system.cc (8769:f95b2a679eb0) system.cc (8795:0909f8ed7aa0)
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
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::new_page()
264System::allocPhysPages(int npages)
265{
266 Addr return_addr = pagePtr << LogVMPageSize;
265{
266 Addr return_addr = pagePtr << LogVMPageSize;
267 ++pagePtr;
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 ---
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 ---