summaryrefslogtreecommitdiff
path: root/src/sim
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2015-08-07 17:43:21 +0100
committerAndreas Sandberg <andreas.sandberg@arm.com>2015-08-07 17:43:21 +0100
commit35d8e5b52bbf41203c19e7226836511377041d46 (patch)
tree45f0152e59850a1f5f56eda52fbf64991ea18fe3 /src/sim
parent023f6eb0f2093ea8ccd706353db6c3afa34c3a4d (diff)
downloadgem5-35d8e5b52bbf41203c19e7226836511377041d46.tar.xz
sim: Flag EventQueue::getCurTick() as const
Diffstat (limited to 'src/sim')
-rw-r--r--src/sim/eventq.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/eventq.hh b/src/sim/eventq.hh
index 6f393fc33..a73e4b9dc 100644
--- a/src/sim/eventq.hh
+++ b/src/sim/eventq.hh
@@ -566,7 +566,7 @@ class EventQueue : public Serializable
Tick nextTick() const { return head->when(); }
void setCurTick(Tick newVal) { _curTick = newVal; }
- Tick getCurTick() { return _curTick; }
+ Tick getCurTick() const { return _curTick; }
Event *getHead() const { return head; }
Event *serviceOne();