gem5  v20.1.0.0
Functions
sim_events.cc File Reference
#include "sim/sim_events.hh"
#include <string>
#include "base/callback.hh"
#include "base/hostinfo.hh"
#include "sim/eventq.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 exitSimLoopNow (const std::string &message, int exit_code, Tick repeat, bool serialize)
 Schedule an event as above, but make it high priority so it runs before any normal events which are schedule at the current time. More...
 

Function Documentation

◆ exitSimLoop()

void exitSimLoop ( const std::string &  message,
int  exit_code = 0,
Tick  when = curTick(),
Tick  repeat = 0,
bool  serialize = false 
)

◆ exitSimLoopNow()

void exitSimLoopNow ( const std::string &  message,
int  exit_code,
Tick  repeat,
bool  serialize 
)

Schedule an event as above, but make it high priority so it runs before any normal events which are schedule at the current time.

Definition at line 99 of file sim_events.cc.

Referenced by sc_gem5::Scheduler::pause(), and sc_gem5::Scheduler::stop().


Generated on Wed Sep 30 2020 14:02:19 for gem5 by doxygen 1.8.17