gem5 v24.0.0.0
Loading...
Searching...
No Matches
sim_exit.hh File Reference
#include <functional>
#include <string>
#include "base/types.hh"

Go to the source code of this file.

Namespaces

namespace  gem5
 Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
 

Functions

Tick gem5::curTick ()
 The universal simulation clock.
 
void gem5::registerExitCallback (const std::function< void()> &callback)
 Register an exit callback.
 
void gem5::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()).
 
void gem5::exitSimLoopNow (const std::string &message, int exit_code=0, Tick repeat=0, bool serialize=false)
 Schedule an event as above, but make it high priority so it runs before any normal events which are schedule at the current time.
 

Generated on Tue Jun 18 2024 16:24:08 for gem5 by doxygen 1.11.0