mem: Fix DRAMSim2 cycle check when restoring from checkpoint
authorAndreas Hansson <andreas.hansson@arm.com>
Tue, 26 Aug 2014 14:14:38 +0000 (10:14 -0400)
committerAndreas Hansson <andreas.hansson@arm.com>
Tue, 26 Aug 2014 14:14:38 +0000 (10:14 -0400)
commit9e4cd5bf1ec71023b786b3a779ed4f3ea29ac214
treed1bbf36638c9c57363bbfdad93c7a541988e66d1
parent6fa8015b7fd50e75e97a175a511958b652eca11e
mem: Fix DRAMSim2 cycle check when restoring from checkpoint

This patch ensures the cycle check is still valid even restoring from
a checkpoint. In this case the DRAMSim2 cycle count is relative to the
startTick rather than 0.
src/mem/dramsim2.cc
src/mem/dramsim2.hh