diff options
author | Lisa Hsu <Lisa.Hsu@amd.com> | 2010-02-23 09:33:18 -0800 |
---|---|---|
committer | Lisa Hsu <Lisa.Hsu@amd.com> | 2010-02-23 09:33:18 -0800 |
commit | be4cf50c5a6a5761f6474fb9f85a9c241101f3ce (patch) | |
tree | d9902a5c9c9ec4f9cf0250c59800211d38faeb0a /src/python | |
parent | 2ad386f104cf84bd8bcb50eef50f04cdbcf9ebf7 (diff) | |
download | gem5-be4cf50c5a6a5761f6474fb9f85a9c241101f3ce.tar.xz |
stats: this makes some fixes to AverageStat and AverageVector.
Also, make Formulas work on AverageVector. First, Stat::Average (and thus
Stats::AverageVector) was broken when coming out of a checkpoint and on resets,
this fixes that. Formulas also didn't work with AverageVector, but added
support for that.
Diffstat (limited to 'src/python')
-rw-r--r-- | src/python/m5/simulate.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/python/m5/simulate.py b/src/python/m5/simulate.py index 092bd0339..291fdc7b7 100644 --- a/src/python/m5/simulate.py +++ b/src/python/m5/simulate.py @@ -148,6 +148,7 @@ def restoreCheckpoint(root, dir): print "Restoring from checkpoint" internal.core.unserializeAll(dir) need_resume.append(root) + stats.reset() def changeToAtomic(system): if not isinstance(system, (objects.Root, objects.System)): |