From: Nathan Binkert Date: Fri, 7 Nov 2003 06:24:49 +0000 (-0500) Subject: save and restore the current bin during reset since we X-Git-Tag: m5_1.0_beta2~274^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=40820042f144b17024bfb09d52d8eae3dcc8d2d4;p=gem5.git save and restore the current bin during reset since we should continue in whatever bin we were in. --HG-- extra : convert_revision : 30a891ccb03afa0c1dd0c98942ab3ea5ba800660 --- 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