gem5
|
#include "sim/core.hh"
#include <iostream>
#include <string>
#include "base/callback.hh"
#include "base/output.hh"
#include "sim/eventq.hh"
Go to the source code of this file.
Namespaces | |
SimClock | |
These are variables that are set based on the simulator frequency. | |
SimClock::Float | |
SimClock::Int | |
These variables equal the number of ticks in the unit of time they're named after in a 64 bit integer. | |
Functions | |
void | setClockFrequency (Tick ticksPerSecond) |
void | setOutputDir (const string &dir) |
CallbackQueue & | exitCallbacks () |
Queue of C++ callbacks to invoke on simulator exit. More... | |
void | registerExitCallback (Callback *callback) |
Register an exit callback. More... | |
void | doExitCleanup () |
Do C++ simulator exit processing. More... | |
Variables | |
Tick | SimClock::Frequency |
The simulated frequency of curTick(). (In ticks per second) More... | |
Tick | SimClock::Int::s |
second More... | |
Tick | SimClock::Int::ms |
millisecond More... | |
Tick | SimClock::Int::us |
microsecond More... | |
Tick | SimClock::Int::ns |
nanosecond More... | |
Tick | SimClock::Int::ps |
picosecond More... | |
double | SimClock::Float::s |
These variables equal the number of ticks in the unit of time they're named after in a double. More... | |
double | SimClock::Float::ms |
millisecond More... | |
double | SimClock::Float::us |
microsecond More... | |
double | SimClock::Float::ns |
nanosecond More... | |
double | SimClock::Float::ps |
picosecond More... | |
double | SimClock::Float::Hz |
These variables the inverse of above. More... | |
double | SimClock::Float::kHz |
kHz More... | |
double | SimClock::Float::MHz |
MHz. More... | |
double | SimClock::Float::GHZ |
GHz. More... | |
void doExitCleanup | ( | ) |
Do C++ simulator exit processing.
Exported to Python to be invoked when simulator terminates via Python's atexit mechanism.
Definition at line 126 of file core.cc.
References CallbackQueue::clear(), exitCallbacks(), and CallbackQueue::process().
Referenced by pybind_init_core().
|
inline |
Queue of C++ callbacks to invoke on simulator exit.
Definition at line 106 of file core.cc.
Referenced by doExitCleanup(), and registerExitCallback().
void registerExitCallback | ( | Callback * | callback | ) |
Register an exit callback.
Register a callback to be called when Python exits.
Definition at line 116 of file core.cc.
References CallbackQueue::add(), and exitCallbacks().
Referenced by ComputeUnit::ComputeUnit(), CowDiskImage::CowDiskImage(), Trace::InstPBTrace::createTraceFile(), DRAMSim2::DRAMSim2(), ElasticTrace::ElasticTrace(), MemTraceProbe::MemTraceProbe(), O3ThreadState< Impl >::O3ThreadState(), BaseTags::regStats(), and SimpleThread::SimpleThread().
void setClockFrequency | ( | Tick | ticksPerSecond | ) |
Definition at line 73 of file core.cc.
References SimClock::Frequency, SimClock::Float::GHZ, SimClock::Float::Hz, SimClock::Float::kHz, SimClock::Float::MHz, SimClock::Int::ms, SimClock::Int::ns, SimClock::Int::ps, SimClock::Int::s, and SimClock::Int::us.
Referenced by pybind_init_core().
void setOutputDir | ( | const string & | dir | ) |
Definition at line 97 of file core.cc.
References OutputDirectory::setDirectory(), and simout.
Referenced by pybind_init_core().