gem5 v24.1.0.1
Loading...
Searching...
No Matches
Namespaces | Functions
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 Arm Limited 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 Mon Jan 13 2025 04:28:46 for gem5 by doxygen 1.9.8