summaryrefslogtreecommitdiff
path: root/sim/universe.cc
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2003-11-02 02:07:31 -0500
committerNathan Binkert <binkertn@umich.edu>2003-11-02 02:07:31 -0500
commitc7d6745b073982782eb05ca523b53e1c7fe784da (patch)
treea8b4047fe21b28aaa2234aa1d22a3eb0e31d34f9 /sim/universe.cc
parent7c6fa585ca5f0d79024a7f83faacaebf29f95999 (diff)
downloadgem5-c7d6745b073982782eb05ca523b53e1c7fe784da.tar.xz
deprecate the m5exit instruction and rename it to m5exit_old
Implement a new m5exit instruction with an optional delay arch/alpha/isa_desc: move m5exit to m5exit old. The old version of the instruction is now deprecated Implement the new exit instruction with the optional delay sim/sim_events.cc: sim/sim_events.hh: Make SimExit take a cycle sim/universe.cc: provide ticksPerMS, ticksPerUS, and ticksPerNS so we don't have to do math during the cycle --HG-- extra : convert_revision : e2ed47a2e5cfcd57c82086c6fcb4a28bf801c214
Diffstat (limited to 'sim/universe.cc')
-rw-r--r--sim/universe.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/sim/universe.cc b/sim/universe.cc
index 8274d84ca..4cfcdc563 100644
--- a/sim/universe.cc
+++ b/sim/universe.cc
@@ -38,6 +38,9 @@ using namespace std;
Tick curTick = 0;
Tick ticksPerSecond;
+Tick ticksPerMS;
+Tick ticksPerUS;
+Tick ticksPerNS;
class UniverseParamContext : public ParamContext
{
@@ -49,10 +52,13 @@ class UniverseParamContext : public ParamContext
UniverseParamContext universe("Universe");
Param<Tick> universe_freq(&universe, "frequency", "tick frequency",
- 200000000);
+ 200000000);
void
UniverseParamContext::checkParams()
{
ticksPerSecond = universe_freq;
+ ticksPerMS = universe_freq / 1000;
+ ticksPerUS = universe_freq / (1000 * 1000);
+ ticksPerNS = universe_freq / (1000 * 1000 * 1000);
}