summaryrefslogtreecommitdiff
path: root/src/mem/CommMonitor.py
diff options
context:
space:
mode:
authorSascha Bischoff <Sascha.Bischoff@ARM.com>2014-03-23 11:11:40 -0400
committerSascha Bischoff <Sascha.Bischoff@ARM.com>2014-03-23 11:11:40 -0400
commit548d47ea2c6f53de2daad78db3187efaf3fbd692 (patch)
tree6ebae38c72264d27d1d67fdadf902f02f5760b31 /src/mem/CommMonitor.py
parente18d0e04a2d44316bc9c9e09b74bcda5562e64cc (diff)
downloadgem5-548d47ea2c6f53de2daad78db3187efaf3fbd692.tar.xz
mem: CommMonitor trace warn on non-timing mode
Add a warning to the CommMonitor which will alert the user if they try and record a trace when the system is not in timing mode.
Diffstat (limited to 'src/mem/CommMonitor.py')
-rw-r--r--src/mem/CommMonitor.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mem/CommMonitor.py b/src/mem/CommMonitor.py
index 3f9106cc4..4e8cfe270 100644
--- a/src/mem/CommMonitor.py
+++ b/src/mem/CommMonitor.py
@@ -37,7 +37,9 @@
# Andreas Hansson
from m5.params import *
+from m5.proxy import *
from MemObject import MemObject
+from System import System
# The communication monitor will most typically be used in combination
# with periodic dumping and resetting of stats using schedStatEvent
@@ -45,6 +47,8 @@ class CommMonitor(MemObject):
type = 'CommMonitor'
cxx_header = "mem/comm_monitor.hh"
+ system = Param.System(Parent.any, "System that the monitor belongs to.")
+
# one port in each direction
master = MasterPort("Master port")
slave = SlavePort("Slave port")