changeset 77fd8912c9d4 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=77fd8912c9d4
description:
sim: Remove the unused SimObject::regFormulas method
Simulation objects normally register derived statistics, presumably
what regFormulas originally was meant for, in regStats(). This patch
removes regRegformulas since there is no need to have a separate
method call to register formulas.
diffstat:
src/python/m5/SimObject.py | 3 +--
src/python/m5/simulate.py | 1 -
src/sim/sim_object.cc | 5 -----
src/sim/sim_object.hh | 1 -
4 files changed, 1 insertions(+), 9 deletions(-)
diffs (57 lines):
diff -r 149a32e42697 -r 77fd8912c9d4 src/python/m5/SimObject.py
--- a/src/python/m5/SimObject.py Fri Sep 07 14:20:53 2012 -0500
+++ b/src/python/m5/SimObject.py Fri Sep 07 14:20:53 2012 -0500
@@ -597,7 +597,6 @@
void loadState(Checkpoint *cp);
void initState();
void regStats();
- void regFormulas();
void resetStats();
void startup();
@@ -707,7 +706,7 @@
# If the attribute exists on the C++ object, transparently
# forward the reference there. This is typically used for
# SWIG-wrapped methods such as init(), regStats(),
- # regFormulas(), resetStats(), startup(), drain(), and
+ # resetStats(), startup(), drain(), and
# resume().
if self._ccObject and hasattr(self._ccObject, attr):
return getattr(self._ccObject, attr)
diff -r 149a32e42697 -r 77fd8912c9d4 src/python/m5/simulate.py
--- a/src/python/m5/simulate.py Fri Sep 07 14:20:53 2012 -0500
+++ b/src/python/m5/simulate.py Fri Sep 07 14:20:53 2012 -0500
@@ -110,7 +110,6 @@
# Do a third pass to initialize statistics
for obj in root.descendants(): obj.regStats()
- for obj in root.descendants(): obj.regFormulas()
# We're done registering statistics. Enable the stats package now.
stats.enable()
diff -r 149a32e42697 -r 77fd8912c9d4 src/sim/sim_object.cc
--- a/src/sim/sim_object.cc Fri Sep 07 14:20:53 2012 -0500
+++ b/src/sim/sim_object.cc Fri Sep 07 14:20:53 2012 -0500
@@ -105,11 +105,6 @@
}
void
-SimObject::regFormulas()
-{
-}
-
-void
SimObject::resetStats()
{
}
diff -r 149a32e42697 -r 77fd8912c9d4 src/sim/sim_object.hh
--- a/src/sim/sim_object.hh Fri Sep 07 14:20:53 2012 -0500
+++ b/src/sim/sim_object.hh Fri Sep 07 14:20:53 2012 -0500
@@ -126,7 +126,6 @@
// register statistics for this object
virtual void regStats();
- virtual void regFormulas();
virtual void resetStats();
/**
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev