79 bool _clockFrequencyFixed =
false;
82 Tick _ticksPerSecond = 1e12;
89 if (_clockFrequencyFixed)
92 using namespace sim_clock;
111 cprintf(
"Global frequency set at %d ticks per second\n", _ticksPerSecond);
113 _clockFrequencyFixed =
true;
121 "Global frequency already fixed at %f ticks/s.", _ticksPerSecond);
122 _ticksPerSecond = tps;
135 inline CallbackQueue &
void setDirectory(const std::string &dir)
Sets name of this directory.
#define panic_if(cond,...)
Conditional panic macro that checks the supplied condition and only panics if the condition is true a...
double Hz
These variables the inverse of above.
double s
These variables equal the number of ticks in the unit of time they're named after in a double.
Tick Frequency
The simulated frequency of curTick(). (In ticks per second)
GEM5_DEPRECATED_NAMESPACE(Float, as_float)
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
void cprintf(const char *format, const Args &...args)
bool clockFrequencyFixed()
uint64_t Tick
Tick count type.
void setOutputDir(const std::string &dir)
CallbackQueue & exitCallbacks()
Queue of C++ callbacks to invoke on simulator exit.
void setClockFrequency(Tick tps)
void doExitCleanup()
Do C++ simulator exit processing.
void registerExitCallback(const std::function< void()> &callback)
Register an exit callback.
GEM5_DEPRECATED_NAMESPACE(GuestABI, guest_abi)