gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions | Variables
core.cc File Reference
#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)
 
CallbackQueueexitCallbacks ()
 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...
 

Function Documentation

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().

CallbackQueue& exitCallbacks ( )
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)
void setClockFrequency ( Tick  ticksPerSecond)
void setOutputDir ( const string &  dir)

Definition at line 97 of file core.cc.

References OutputDirectory::setDirectory(), and simout.

Referenced by pybind_init_core().


Generated on Fri Jun 9 2017 13:03:59 for gem5 by doxygen 1.8.6