system.cc (7897:d9e8b1fd1a9f) | system.cc (7914:eee5bb0fb8ea) |
---|---|
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 --- 58 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 | 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 --- 58 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), | 75 memoryMode(p->mem_mode), 76 workItemsBegin(0), 77 workItemsEnd(0), 78 _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; --- 55 unchanged lines hidden (view full) --- 139 DPRINTF(Loader, "Kernel end = %#x\n", kernelEnd); 140 DPRINTF(Loader, "Kernel entry = %#x\n", kernelEntry); 141 DPRINTF(Loader, "Kernel loaded...\n"); 142 } 143#endif // FULL_SYSTEM 144 145 // increment the number of running systms 146 numSystemsRunning++; | 79 totalNumInsts(0), 80 instEventQueue("system instruction-based event queue") 81{ 82 // add self to global system list 83 systemList.push_back(this); 84 85#if FULL_SYSTEM 86 kernelSymtab = new SymbolTable; --- 55 unchanged lines hidden (view full) --- 142 DPRINTF(Loader, "Kernel end = %#x\n", kernelEnd); 143 DPRINTF(Loader, "Kernel entry = %#x\n", kernelEntry); 144 DPRINTF(Loader, "Kernel loaded...\n"); 145 } 146#endif // FULL_SYSTEM 147 148 // increment the number of running systms 149 numSystemsRunning++; |
150 151 activeCpus.clear(); |
|
147} 148 149System::~System() 150{ 151#if FULL_SYSTEM 152 delete kernelSymtab; 153 delete kernel; 154#else --- 58 unchanged lines hidden (view full) --- 213 214 if (remoteGDB.size() <= id) { 215 remoteGDB.resize(id + 1); 216 } 217 218 remoteGDB[id] = rgdb; 219 } 220 | 152} 153 154System::~System() 155{ 156#if FULL_SYSTEM 157 delete kernelSymtab; 158 delete kernel; 159#else --- 58 unchanged lines hidden (view full) --- 218 219 if (remoteGDB.size() <= id) { 220 remoteGDB.resize(id + 1); 221 } 222 223 remoteGDB[id] = rgdb; 224 } 225 |
226 activeCpus.push_back(false); 227 |
|
221 return id; 222} 223 224int 225System::numRunningContexts() 226{ 227 int running = 0; 228 for (int i = 0; i < _numContexts; ++i) { --- 113 unchanged lines hidden --- | 228 return id; 229} 230 231int 232System::numRunningContexts() 233{ 234 int running = 0; 235 for (int i = 0; i < _numContexts; ++i) { --- 113 unchanged lines hidden --- |