diff options
author | Andreas Sandberg <Andreas.Sandberg@arm.com> | 2012-09-07 14:20:53 -0500 |
---|---|---|
committer | Andreas Sandberg <Andreas.Sandberg@arm.com> | 2012-09-07 14:20:53 -0500 |
commit | 2f397f314b6724ad82c5cc40bb30aa3148361b09 (patch) | |
tree | 772ff83fd30ab91d87673634941350d99cbc38c1 /src/python | |
parent | 03ff6120540977e02284d1b49845b3081efa164e (diff) | |
download | gem5-2f397f314b6724ad82c5cc40bb30aa3148361b09.tar.xz |
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 (limited to 'src/python')
-rw-r--r-- | src/python/m5/SimObject.py | 3 | ||||
-rw-r--r-- | src/python/m5/simulate.py | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/python/m5/SimObject.py b/src/python/m5/SimObject.py index 0f742a3a2..ae6b2035e 100644 --- a/src/python/m5/SimObject.py +++ b/src/python/m5/SimObject.py @@ -597,7 +597,6 @@ class SimObject(object): void loadState(Checkpoint *cp); void initState(); void regStats(); - void regFormulas(); void resetStats(); void startup(); @@ -707,7 +706,7 @@ class SimObject(object): # 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 --git a/src/python/m5/simulate.py b/src/python/m5/simulate.py index 99e3ec989..9cb647a6b 100644 --- a/src/python/m5/simulate.py +++ b/src/python/m5/simulate.py @@ -110,7 +110,6 @@ def instantiate(ckpt_dir=None): # 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() |