From 89bb8260790442ab1260099a95cfcfa2c17f2cb0 Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Fri, 22 Mar 2013 15:53:25 -0500 Subject: ruby: keep histogram of outstanding requests in seq The histogram for tracking outstanding counts per cycle is maintained in the profiler. For a parallel implementation of the memory system, we need that this histogram is maintained locally. Hence it will now be kept in the sequencer itself. The resulting histograms will be merged when the stats are printed. --- src/mem/ruby/slicc_interface/AbstractController.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mem/ruby/slicc_interface') diff --git a/src/mem/ruby/slicc_interface/AbstractController.cc b/src/mem/ruby/slicc_interface/AbstractController.cc index 13107038c..6e99a72bb 100644 --- a/src/mem/ruby/slicc_interface/AbstractController.cc +++ b/src/mem/ruby/slicc_interface/AbstractController.cc @@ -27,6 +27,7 @@ */ #include "mem/ruby/slicc_interface/AbstractController.hh" +#include "mem/ruby/system/Sequencer.hh" #include "mem/ruby/system/System.hh" AbstractController::AbstractController(const Params *p) @@ -60,6 +61,11 @@ AbstractController::clearStats() for (uint32_t i = 0; i < size; i++) { m_delayVCHistogram[i].clear(); } + + Sequencer *seq = getSequencer(); + if (seq != NULL) { + seq->clearStats(); + } } void -- cgit v1.2.3