summaryrefslogtreecommitdiff
path: root/src/sim/core.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim/core.hh')
-rw-r--r--src/sim/core.hh6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/sim/core.hh b/src/sim/core.hh
index 4f842ab48..b5a082bcb 100644
--- a/src/sim/core.hh
+++ b/src/sim/core.hh
@@ -39,12 +39,10 @@
#include <string>
#include "base/types.hh"
+#include "sim/eventq.hh"
/// The universal simulation clock.
-extern Tick _curTick;
-
-inline Tick curTick() { return _curTick; }
-inline void curTick(Tick newVal) { _curTick = newVal; }
+inline Tick curTick() { return mainEventQueue.getCurTick(); }
const Tick retryTime = 1000;