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 9 * notice, this list of conditions and the following disclaimer; 10 * redistributions in binary form must reproduce the above copyright 11 * notice, this list of conditions and the following disclaimer in the --- 13 unchanged lines hidden (view full) --- 25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * 29 * Authors: Steve Reinhardt 30 * Lisa Hsu 31 * Nathan Binkert 32 * Ali Saidi |
33 * Rick Strong |
34 */ 35 36#include "arch/isa_traits.hh" 37#include "arch/remote_gdb.hh" 38#include "arch/utility.hh" 39#include "base/loader/object_file.hh" 40#include "base/loader/symtab.hh" 41#include "base/trace.hh" --- 25 unchanged lines hidden (view full) --- 67 : SimObject(p), physmem(p->physmem), _numContexts(0), 68#if FULL_SYSTEM 69 init_param(p->init_param), 70 loadAddrMask(p->load_addr_mask), 71#else 72 pagePtr(0), 73 nextPID(0), 74#endif |
75 memoryMode(p->mem_mode), _params(p), 76 totalNumInsts(0), 77 instEventQueue("system instruction-based event queue") |
78{ 79 // add self to global system list 80 systemList.push_back(this); 81 82#if FULL_SYSTEM 83 kernelSymtab = new SymbolTable; 84 if (!debugSymbolTable) 85 debugSymbolTable = new SymbolTable; --- 190 unchanged lines hidden (view full) --- 276System::freeMemSize() 277{ 278 return physmem->size() - (pagePtr << LogVMPageSize); 279} 280 281#endif 282 283void |
284System::resume() 285{ 286 SimObject::resume(); 287 totalNumInsts = 0; 288} 289 290void |
291System::serialize(ostream &os) 292{ 293#if FULL_SYSTEM 294 kernelSymtab->serialize("kernel_symtab", os); 295#else // !FULL_SYSTEM 296 SERIALIZE_SCALAR(pagePtr); 297 SERIALIZE_SCALAR(nextPID); 298#endif --- 43 unchanged lines hidden --- |