Skip to content
Snippets Groups Projects
Commit efbb6c68 authored by Richard Hellwig's avatar Richard Hellwig Committed by Gerrit Code Review
Browse files

Merge "sal/gem5: getTimerTicks(), getTimerTicksPerSecond() implemented"

parents 34065fea f3593648
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@
#include "../Listener.hpp"
#include "base/trace.hh"
#include "sim/root.hh"
#include "sim/core.hh"
#include <fstream>
......@@ -111,4 +112,14 @@ void Gem5Controller::reboot()
}
simtime_t Gem5Controller::getTimerTicks()
{
return curTick();
}
simtime_t Gem5Controller::getTimerTicksPerSecond()
{
return SimClock::Frequency;
}
} // end-of-namespace: fail
......@@ -38,6 +38,8 @@ public:
void onRestore();
bool isRestoreRequest();
void reboot();
virtual simtime_t getTimerTicks();
virtual simtime_t getTimerTicksPerSecond();
#if defined(CONFIG_EVENT_BREAKPOINTS) ||\
defined(CONFIG_EVENT_BREAKPOINTS_RANGE)
void setMnemonic(const std::string& mn) { m_Mnemonic = mn; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment