diff options
author | Sascha Bischoff <Sascha.Bischoff@ARM.com> | 2014-03-23 11:11:40 -0400 |
---|---|---|
committer | Sascha Bischoff <Sascha.Bischoff@ARM.com> | 2014-03-23 11:11:40 -0400 |
commit | 548d47ea2c6f53de2daad78db3187efaf3fbd692 (patch) | |
tree | 6ebae38c72264d27d1d67fdadf902f02f5760b31 /src/mem/comm_monitor.hh | |
parent | e18d0e04a2d44316bc9c9e09b74bcda5562e64cc (diff) | |
download | gem5-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/comm_monitor.hh')
-rw-r--r-- | src/mem/comm_monitor.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mem/comm_monitor.hh b/src/mem/comm_monitor.hh index 9dcd065ca..c3a970940 100644 --- a/src/mem/comm_monitor.hh +++ b/src/mem/comm_monitor.hh @@ -46,6 +46,7 @@ #include "mem/mem_object.hh" #include "params/CommMonitor.hh" #include "proto/protoio.hh" +#include "sim/system.hh" /** * The communication monitor is a MemObject which can monitor statistics of @@ -418,6 +419,9 @@ class CommMonitor : public MemObject /** Output stream for a potential trace. */ ProtoOutputStream* traceStream; + + /** The system in which the monitor lives */ + System *system; }; #endif //__MEM_COMM_MONITOR_HH__ |