summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2003-11-12 15:23:31 -0500
committerNathan Binkert <binkertn@umich.edu>2003-11-12 15:23:31 -0500
commit0bd909277d1619d5e40444e5b7a9d59bbae9bc19 (patch)
treed403c413d95a1dca7b2b936b32da9b9f71471def
parent74aaf2401c015baa4eeedf0dc0ed741fac20e41a (diff)
downloadgem5-0bd909277d1619d5e40444e5b7a9d59bbae9bc19.tar.xz
statistics.cc:
Only reactivate the original bin if it actually exists. base/statistics.cc: Only reactivate the original bin if it actually exists. --HG-- extra : convert_revision : e71ba0680d79ca439487a31d8f365429bff8c375
-rw-r--r--base/statistics.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/statistics.cc b/base/statistics.cc
index 706d14ffb..b08715162 100644
--- a/base/statistics.cc
+++ b/base/statistics.cc
@@ -289,7 +289,8 @@ Database::reset()
++bi;
}
- orig->activate();
+ if (orig)
+ orig->activate();
}
void