diff options
author | Nathan Binkert <binkertn@umich.edu> | 2003-11-07 01:24:49 -0500 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2003-11-07 01:24:49 -0500 |
commit | 40820042f144b17024bfb09d52d8eae3dcc8d2d4 (patch) | |
tree | e69b1b7c88b7225d5112d337f09c6cd6e4cfe9e3 /base/statistics.cc | |
parent | 7ec4f7d21168c6cca349caee0903450f7ab93c14 (diff) | |
download | gem5-40820042f144b17024bfb09d52d8eae3dcc8d2d4.tar.xz |
save and restore the current bin during reset since we
should continue in whatever bin we were in.
--HG--
extra : convert_revision : 30a891ccb03afa0c1dd0c98942ab3ea5ba800660
Diffstat (limited to 'base/statistics.cc')
-rw-r--r-- | base/statistics.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/statistics.cc b/base/statistics.cc index 3af764609..cc7d60b0b 100644 --- a/base/statistics.cc +++ b/base/statistics.cc @@ -272,6 +272,8 @@ Database::reset() ++i; } + MainBin *orig = MainBin::current(); + list<GenBin *>::iterator bi = bins.begin(); list<GenBin *>::iterator be = bins.end(); while (bi != be) { @@ -286,6 +288,8 @@ Database::reset() } ++bi; } + + orig->activate(); } void |