Timesync: Make sure timesync event is setup after curTick is unserialized
authorAli Saidi <Ali.Saidi@ARM.com>
Sat, 12 Feb 2011 00:29:35 +0000 (18:29 -0600)
committerAli Saidi <Ali.Saidi@ARM.com>
Sat, 12 Feb 2011 00:29:35 +0000 (18:29 -0600)
commit59bf0e7eb41494b7de033aa4737da026adddc215
treec87dde58ae9d7511d1d33935129e231f5d5d6aeb
parentb7457fc11e9c7433273f6a73785218f46fcbba3d
Timesync: Make sure timesync event is setup after curTick is unserialized

Setup initial timesync event in initState or loadState so that curTick has
been updated to the new value, otherwise the event is scheduled in the past.
src/sim/root.cc
src/sim/root.hh