From: Nilay Vaish Date: Mon, 10 Oct 2011 22:01:33 +0000 (-0500) Subject: mc146818: Correctly serialize tickEvent X-Git-Tag: stable_2012_02_02~42 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b61e34fab8a653a5e015e4b9b0f4a121ca59335c;p=gem5.git mc146818: Correctly serialize tickEvent 'tickEvent' was not being serialized as in its place 'event' was being used. This patch rectifies this error. --- 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); }