summaryrefslogtreecommitdiff
path: root/src/cpu/simple/timing.cc
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2007-09-28 13:22:14 -0400
committerAli Saidi <saidi@eecs.umich.edu>2007-09-28 13:22:14 -0400
commitd2a4f595d6e70f5f9f5c7cae4f496c2db1e39ca5 (patch)
tree6c2fa47b791b805302ce4882e157d61188d3d0ad /src/cpu/simple/timing.cc
parentd325f49b70e52044fd1072afed27227ecd4b2a60 (diff)
downloadgem5-d2a4f595d6e70f5f9f5c7cae4f496c2db1e39ca5.tar.xz
Update stats for quiesced cycles
--HG-- extra : convert_revision : 703ba58f156c9f2677b020f05d36bc1e3ae0b9e5
Diffstat (limited to 'src/cpu/simple/timing.cc')
-rw-r--r--src/cpu/simple/timing.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/simple/timing.cc b/src/cpu/simple/timing.cc
index 2b5577e04..b70fc2a41 100644
--- a/src/cpu/simple/timing.cc
+++ b/src/cpu/simple/timing.cc
@@ -172,7 +172,6 @@ TimingSimpleCPU::resume()
}
changeState(SimObject::Running);
- previousTick = curTick;
}
void
@@ -207,6 +206,7 @@ TimingSimpleCPU::takeOverFrom(BaseCPU *oldCPU)
if (_status != Running) {
_status = Idle;
}
+ previousTick = curTick;
}