From 7e6dcd812c18060a76d5a73a97e4aa05bcb0d516 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Wed, 10 Dec 2003 17:49:41 -0800 Subject: [PATCH] Rename RegResetCallback to registerResetCallback(). Add reset callback for bus (to fix idle cycles computation). base/statistics.cc: base/statistics.hh: sim/sim_object.cc: Rename RegResetCallback to registerResetCallback(). --HG-- extra : convert_revision : c886c98143d4851f709ef95de3120b4494f8e4d2 --- base/statistics.cc | 2 +- base/statistics.hh | 2 +- sim/sim_object.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/base/statistics.cc b/base/statistics.cc index afe613455..fe20a7281 100644 --- a/base/statistics.cc +++ b/base/statistics.cc @@ -1022,7 +1022,7 @@ dump(ostream &stream) CallbackQueue resetQueue; void -RegResetCallback(Callback *cb) +registerResetCallback(Callback *cb) { resetQueue.add(cb); } diff --git a/base/statistics.hh b/base/statistics.hh index 7d2cdf869..732d1766a 100644 --- a/base/statistics.hh +++ b/base/statistics.hh @@ -2946,7 +2946,7 @@ class Temp void check(); void dump(std::ostream &stream); void reset(); -void RegResetCallback(Callback *cb); +void registerResetCallback(Callback *cb); inline Temp operator+(Temp l, Temp r) diff --git a/sim/sim_object.cc b/sim/sim_object.cc index dbc2cf7be..90ad78648 100644 --- a/sim/sim_object.cc +++ b/sim/sim_object.cc @@ -123,7 +123,7 @@ SimObject::regAllStats() (*i)->regFormulas(); } - Statistics::RegResetCallback(&StatResetCB); + Statistics::registerResetCallback(&StatResetCB); } // -- 2.30.2