diff options
author | Lisa Hsu <hsul@eecs.umich.edu> | 2003-11-04 15:21:04 -0500 |
---|---|---|
committer | Lisa Hsu <hsul@eecs.umich.edu> | 2003-11-04 15:21:04 -0500 |
commit | 94edf2de3f1341f07fb978928eb8d08f9ab337f5 (patch) | |
tree | e596b613ab7b973427f1d68aebf4b25060b3ea99 /base | |
parent | 553df008cfec3f4a0bd86c8e5730bde544c26e3d (diff) | |
parent | 8834d91f21562d01444421cc3eccca641bf100d0 (diff) | |
download | gem5-94edf2de3f1341f07fb978928eb8d08f9ab337f5.tar.xz |
Merge zizzer:/bk/m5 into zower.eecs.umich.edu:/z/hsul/bk/realclean
--HG--
extra : convert_revision : 32bbe481ee748785f0bcffb0a711017d51c987a0
Diffstat (limited to 'base')
-rw-r--r-- | base/statistics.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/base/statistics.cc b/base/statistics.cc index fbb056498..5c1844327 100644 --- a/base/statistics.cc +++ b/base/statistics.cc @@ -265,12 +265,19 @@ Database::check() void Database::reset() { + list<GenBin *>::iterator bi = bins.begin(); + list<GenBin *>::iterator be = bins.end(); list_t::iterator i = allStats.begin(); list_t::iterator end = allStats.end(); - while (i != end) { + while (bi != be) { + (*bi)->activate(); + + while (i != end) { (*i)->reset(); ++i; + } + ++bi; } } |