gem5 v25.0.0.1
Loading...
Searching...
No Matches
core.cc File Reference
#include "sim/core.hh"
#include <iostream>
#include <string>
#include "base/callback.hh"
#include "base/cprintf.hh"
#include "base/logging.hh"
#include "base/output.hh"

Go to the source code of this file.

Namespaces

namespace  gem5
 Copyright (c) 2024 Arm Limited All rights reserved.
namespace  gem5::sim_clock
 These are variables that are set based on the simulator frequency.
namespace  gem5::sim_clock::as_float
namespace  gem5::sim_clock::as_int
 These variables equal the number of ticks in the unit of time they're named after in a 64 bit integer.

Functions

void gem5::fixClockFrequency ()
bool gem5::clockFrequencyFixed ()
void gem5::setClockFrequency (Tick tps)
Tick gem5::getClockFrequency ()
void gem5::setOutputDir (const std::string &dir)
CallbackQueuegem5::exitCallbacks ()
 Queue of C++ callbacks to invoke on simulator exit.
void gem5::registerExitCallback (const std::function< void()> &callback)
 Register an exit callback.
void gem5::doExitCleanup ()
 Do C++ simulator exit processing.

Variables

Tick gem5::sim_clock::Frequency
 The simulated frequency of curTick(). (In ticks per second)
Tick gem5::sim_clock::as_int::s
 second
Tick gem5::sim_clock::as_int::ms
 millisecond
Tick gem5::sim_clock::as_int::us
 microsecond
Tick gem5::sim_clock::as_int::ns
 nanosecond
Tick gem5::sim_clock::as_int::ps
 picosecond
double gem5::sim_clock::as_float::s
 These variables equal the number of ticks in the unit of time they're named after in a double.
double gem5::sim_clock::as_float::ms
 millisecond
double gem5::sim_clock::as_float::us
 microsecond
double gem5::sim_clock::as_float::ns
 nanosecond
double gem5::sim_clock::as_float::ps
 picosecond
double gem5::sim_clock::as_float::Hz
 These variables the inverse of above.
double gem5::sim_clock::as_float::kHz
 kHz
double gem5::sim_clock::as_float::MHz
 MHz.
double gem5::sim_clock::as_float::GHz
 GHz.

Generated on Sat Oct 18 2025 08:06:47 for gem5 by doxygen 1.14.0