summaryrefslogtreecommitdiff
path: root/base/statistics.cc
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2003-11-07 01:24:49 -0500
committerNathan Binkert <binkertn@umich.edu>2003-11-07 01:24:49 -0500
commit40820042f144b17024bfb09d52d8eae3dcc8d2d4 (patch)
treee69b1b7c88b7225d5112d337f09c6cd6e4cfe9e3 /base/statistics.cc
parent7ec4f7d21168c6cca349caee0903450f7ab93c14 (diff)
downloadgem5-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.cc4
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