From 2d6470936ca06310b213117159fa0010259708cd Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Fri, 16 Nov 2012 10:27:47 -0600 Subject: sim: have a curTick per eventq This patch adds a _curTick variable to an eventq. This variable is updated whenever an event is serviced in function serviceOne(), or all events upto a particular time are processed in function serviceEvents(). This change helps when there are eventqs that do not make use of curTick for scheduling events. --- src/dev/intel_8254_timer.hh | 3 ++- src/dev/mc146818.hh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/dev') diff --git a/src/dev/intel_8254_timer.hh b/src/dev/intel_8254_timer.hh index 72b9b9c72..ad751447e 100644 --- a/src/dev/intel_8254_timer.hh +++ b/src/dev/intel_8254_timer.hh @@ -38,8 +38,9 @@ #include "base/bitunion.hh" #include "base/types.hh" +#include "base/trace.hh" #include "debug/Intel8254Timer.hh" -#include "sim/eventq.hh" +#include "sim/eventq_impl.hh" #include "sim/serialize.hh" /** Programmable Interval Timer (Intel 8254) */ diff --git a/src/dev/mc146818.hh b/src/dev/mc146818.hh index c2f1e2dd8..0c7baf47b 100644 --- a/src/dev/mc146818.hh +++ b/src/dev/mc146818.hh @@ -33,7 +33,7 @@ #ifndef __DEV_MC146818_HH__ #define __DEV_MC146818_HH__ -#include "sim/eventq.hh" +#include "sim/eventq_impl.hh" /** Real-Time Clock (MC146818) */ class MC146818 : public EventManager -- cgit v1.2.3