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
CallbackQueue resetQueue;
void
-RegResetCallback(Callback *cb)
+registerResetCallback(Callback *cb)
{
resetQueue.add(cb);
}
void check();
void dump(std::ostream &stream);
void reset();
-void RegResetCallback(Callback *cb);
+void registerResetCallback(Callback *cb);
inline Temp
operator+(Temp l, Temp r)
(*i)->regFormulas();
}
- Statistics::RegResetCallback(&StatResetCB);
+ Statistics::registerResetCallback(&StatResetCB);
}
//