| gem5
    | 
#include "sim/sim_events.hh"#include <string>#include "base/callback.hh"#include "base/hostinfo.hh"#include "sim/eventq_impl.hh"#include "sim/sim_exit.hh"#include "sim/stats.hh"Go to the source code of this file.
| Functions | |
| void | exitSimLoop (const std::string &message, int exit_code, Tick when, Tick repeat, bool serialize) | 
| Schedule an event to exit the simulation loop (returning to Python) at the end of the current cycle (curTick()).  More... | |
| void exitSimLoop | ( | const std::string & | message, | 
| int | exit_code = 0, | ||
| Tick | when = curTick(), | ||
| Tick | repeat = 0, | ||
| bool | serialize = false | ||
| ) | 
Schedule an event to exit the simulation loop (returning to Python) at the end of the current cycle (curTick()).
The message and exit_code parameters are saved in the SimLoopExitEvent to indicate why the exit occurred.
Definition at line 83 of file sim_events.cc.
References curTick(), simQuantum, and warn_if.
Referenced by TraceCPU::checkAndSchedExitEvent(), MemTest::completeRequest(), doSimLoop(), exitImpl(), BaseCache::incMissCount(), PseudoInst::m5checkpoint(), PseudoInst::m5exit(), PseudoInst::m5fail(), LocalSimLoopExitEvent::process(), CountedExitEvent::process(), DistIface::SyncEvent::process(), pybind_init_event(), DistIface::recvThreadFunc(), TCPIface::sendTCP(), DrainManager::signalDrainDone(), SimpleThread::simPalCheck(), FullO3CPU< Impl >::simPalCheck(), PseudoInst::switchcpu(), takeCheckpoint(), GarnetSyntheticTraffic::tick(), RubyDirectedTester::wakeup(), RubyTester::wakeup(), PseudoInst::workbegin(), PseudoInst::workend(), and Pl011::write().