From: Steve Reinhardt Date: Thu, 11 Dec 2003 01:49:41 +0000 (-0800) Subject: Rename RegResetCallback to registerResetCallback(). X-Git-Tag: m5_1.0_beta2~239 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e6dcd812c18060a76d5a73a97e4aa05bcb0d516;p=gem5.git 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 --- 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); } //