summaryrefslogtreecommitdiff
path: root/src/python/m5
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/m5')
-rw-r--r--src/python/m5/SimObject.py2
-rw-r--r--src/python/m5/simulate.py6
2 files changed, 8 insertions, 0 deletions
diff --git a/src/python/m5/SimObject.py b/src/python/m5/SimObject.py
index fc5416cbf..30c968380 100644
--- a/src/python/m5/SimObject.py
+++ b/src/python/m5/SimObject.py
@@ -616,6 +616,8 @@ class SimObject(object):
void initState();
void regStats();
void resetStats();
+ void regProbePoints();
+ void regProbeListeners();
void startup();
''')
diff --git a/src/python/m5/simulate.py b/src/python/m5/simulate.py
index 7d443b1db..8529a7472 100644
--- a/src/python/m5/simulate.py
+++ b/src/python/m5/simulate.py
@@ -118,6 +118,12 @@ def instantiate(ckpt_dir=None):
# Do a third pass to initialize statistics
for obj in root.descendants(): obj.regStats()
+ # Do a fourth pass to initialize probe points
+ for obj in root.descendants(): obj.regProbePoints()
+
+ # Do a fifth pass to connect probe listeners
+ for obj in root.descendants(): obj.regProbeListeners()
+
# We're done registering statistics. Enable the stats package now.
stats.enable()