summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2003-11-12 14:59:58 -0500
committerNathan Binkert <binkertn@umich.edu>2003-11-12 14:59:58 -0500
commit74aaf2401c015baa4eeedf0dc0ed741fac20e41a (patch)
treedc480d3a0cf4cf3d0811f6e9114c6f40081a6487
parent94f98b43b3eaf86b22ca29bab5e0a1d3a1c60512 (diff)
downloadgem5-74aaf2401c015baa4eeedf0dc0ed741fac20e41a.tar.xz
in the case where we don't have any bins, we don't want to panic
--HG-- extra : convert_revision : e9056ca020d0f3db388b31a074b03e4d521f8705
-rw-r--r--base/statistics.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/statistics.cc b/base/statistics.cc
index 69b663dbb..706d14ffb 100644
--- a/base/statistics.cc
+++ b/base/statistics.cc
@@ -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();