summaryrefslogtreecommitdiff
path: root/src/dev
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2011-10-10 17:01:33 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2011-10-10 17:01:33 -0500
commitb61e34fab8a653a5e015e4b9b0f4a121ca59335c (patch)
tree5ee05b49d024fbd7639fc4455f7d465b69e51d1f /src/dev
parent4fcf8e9959e281259a4e9e29fbd34e67fa6072dc (diff)
downloadgem5-b61e34fab8a653a5e015e4b9b0f4a121ca59335c.tar.xz
mc146818: Correctly serialize tickEvent
'tickEvent' was not being serialized as in its place 'event' was being used. This patch rectifies this error.
Diffstat (limited to 'src/dev')
-rw-r--r--src/dev/mc146818.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dev/mc146818.cc b/src/dev/mc146818.cc
index 9397a599b..b0aaf6e64 100644
--- a/src/dev/mc146818.cc
+++ b/src/dev/mc146818.cc
@@ -217,7 +217,7 @@ MC146818::serialize(const string &base, ostream &os)
//
Tick rtcTimerInterruptTickOffset = event.when() - curTick();
SERIALIZE_SCALAR(rtcTimerInterruptTickOffset);
- Tick rtcClockTickOffset = event.when() - curTick();
+ Tick rtcClockTickOffset = tickEvent.when() - curTick();
SERIALIZE_SCALAR(rtcClockTickOffset);
}