save and restore the current bin during reset since we

should continue in whatever bin we were in.

--HG--
extra : convert_revision : 30a891ccb03afa0c1dd0c98942ab3ea5ba800660
This commit is contained in:
Nathan Binkert 2003-11-07 01:24:49 -05:00
parent 7ec4f7d211
commit 40820042f1

View file

@ -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