From 548d47ea2c6f53de2daad78db3187efaf3fbd692 Mon Sep 17 00:00:00 2001 From: Sascha Bischoff Date: Sun, 23 Mar 2014 11:11:40 -0400 Subject: 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. --- src/mem/comm_monitor.hh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mem/comm_monitor.hh') 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__ -- cgit v1.2.3