in the case where we don't have any bins, we don't want to panic
authorNathan Binkert <binkertn@umich.edu>
Wed, 12 Nov 2003 19:59:58 +0000 (14:59 -0500)
committerNathan Binkert <binkertn@umich.edu>
Wed, 12 Nov 2003 19:59:58 +0000 (14:59 -0500)
--HG--
extra : convert_revision : e9056ca020d0f3db388b31a074b03e4d521f8705

base/statistics.cc

index 69b663dbb9d403033eaa07ec802f3412ec605298..706d14ffb142644b47c8ea4944286eeb46da7bb0 100644 (file)
@@ -272,7 +272,7 @@ Database::reset()
         ++i;
     }
 
-    MainBin *orig = MainBin::current();
+    MainBin *orig = MainBin::curBin();
 
     list<GenBin *>::iterator bi = bins.begin();
     list<GenBin *>::iterator be = bins.end();