From 022e69e6de513fce2efea8d732e9274624ce3e94 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Tue, 4 Aug 2015 10:29:13 +0100 Subject: mem: Redesign the stack distance calculator as a probe This changeset removes the stack distance calculator hooks from the CommMonitor class and implements a stack distance calculator as a memory system probe instead. The probe can be hooked up to any component that exports probe points of the type ProbePoints::Packet. --- tests/configs/tgen-simple-mem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/configs') diff --git a/tests/configs/tgen-simple-mem.py b/tests/configs/tgen-simple-mem.py index edb2f9fcd..8c2aa80a9 100644 --- a/tests/configs/tgen-simple-mem.py +++ b/tests/configs/tgen-simple-mem.py @@ -57,8 +57,8 @@ system = System(cpu = cpu, physmem = SimpleMemory(), # add a communication monitor, and also trace all the packets and # calculate and verify stack distance system.monitor = CommMonitor(trace_file = "monitor.ptrc.gz", - trace_enable = True, - stack_dist_calc = StackDistCalc(verify = True)) + trace_enable = True) +system.monitor.stackdist = StackDistProbe(verify = True) # connect the traffic generator to the bus via a communication monitor system.cpu.port = system.monitor.slave -- cgit v1.2.3