system.cc (9294:8fb03b13de02) | system.cc (9342:6fec8f26e56d) |
---|---|
1/* 2 * Copyright (c) 2011-2012 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 --- 167 unchanged lines hidden (view full) --- 176{ 177 // no need to distinguish at the moment (besides checking) 178 return _systemPort; 179} 180 181void 182System::setMemoryMode(Enums::MemoryMode mode) 183{ | 1/* 2 * Copyright (c) 2011-2012 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 --- 167 unchanged lines hidden (view full) --- 176{ 177 // no need to distinguish at the moment (besides checking) 178 return _systemPort; 179} 180 181void 182System::setMemoryMode(Enums::MemoryMode mode) 183{ |
184 assert(getState() == Drained); | 184 assert(getDrainState() == Drainable::Drained); |
185 memoryMode = mode; 186} 187 188bool System::breakpoint() 189{ 190 if (remoteGDB.size()) 191 return remoteGDB[0]->breakpoint(); 192 return false; --- 130 unchanged lines hidden (view full) --- 323} 324 325bool 326System::isMemAddr(Addr addr) const 327{ 328 return physmem.isMemAddr(addr); 329} 330 | 185 memoryMode = mode; 186} 187 188bool System::breakpoint() 189{ 190 if (remoteGDB.size()) 191 return remoteGDB[0]->breakpoint(); 192 return false; --- 130 unchanged lines hidden (view full) --- 323} 324 325bool 326System::isMemAddr(Addr addr) const 327{ 328 return physmem.isMemAddr(addr); 329} 330 |
331unsigned int 332System::drain(DrainManager *dm) 333{ 334 setDrainState(Drainable::Drained); 335 return 0; 336} 337 |
|
331void | 338void |
332System::resume() | 339System::drainResume() |
333{ | 340{ |
334 SimObject::resume(); | 341 Drainable::drainResume(); |
335 totalNumInsts = 0; 336} 337 338void 339System::serialize(ostream &os) 340{ 341 if (FullSystem) 342 kernelSymtab->serialize("kernel_symtab", os); --- 115 unchanged lines hidden --- | 342 totalNumInsts = 0; 343} 344 345void 346System::serialize(ostream &os) 347{ 348 if (FullSystem) 349 kernelSymtab->serialize("kernel_symtab", os); --- 115 unchanged lines hidden --- |