Rename RegResetCallback to registerResetCallback().
authorSteve Reinhardt <stever@eecs.umich.edu>
Thu, 11 Dec 2003 01:49:41 +0000 (17:49 -0800)
committerSteve Reinhardt <stever@eecs.umich.edu>
Thu, 11 Dec 2003 01:49:41 +0000 (17:49 -0800)
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
base/statistics.hh
sim/sim_object.cc

index afe613455351b5db76bdc588906d1ffe81601306..fe20a7281855572a8fef63f4285bfdbbcfe4304b 100644 (file)
@@ -1022,7 +1022,7 @@ dump(ostream &stream)
 CallbackQueue resetQueue;
 
 void
-RegResetCallback(Callback *cb)
+registerResetCallback(Callback *cb)
 {
     resetQueue.add(cb);
 }
index 7d2cdf869d4e88138f348ed414756b3356a8f4a2..732d1766afcfa7d3007a9f1b026db73fd2879ca3 100644 (file)
@@ -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)
index dbc2cf7be3fcd12e57d4e2df14c34060e838f716..90ad786482f29e3c2eb6a7709ca5d8e24df5e359 100644 (file)
@@ -123,7 +123,7 @@ SimObject::regAllStats()
         (*i)->regFormulas();
     }
 
-    Statistics::RegResetCallback(&StatResetCB);
+    Statistics::registerResetCallback(&StatResetCB);
 }
 
 //