From 40820042f144b17024bfb09d52d8eae3dcc8d2d4 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Fri, 7 Nov 2003 01:24:49 -0500 Subject: [PATCH] save and restore the current bin during reset since we should continue in whatever bin we were in. --HG-- extra : convert_revision : 30a891ccb03afa0c1dd0c98942ab3ea5ba800660 --- base/statistics.cc | 4 ++++ 1 file changed, 4 insertions(+) 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::iterator bi = bins.begin(); list::iterator be = bins.end(); while (bi != be) { @@ -286,6 +288,8 @@ Database::reset() } ++bi; } + + orig->activate(); } void -- 2.30.2