summaryrefslogtreecommitdiff
path: root/src/mem/ruby/system/System.cc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-08-03 11:06:19 -0700
committerGabe Black <gblack@eecs.umich.edu>2009-08-03 11:06:19 -0700
commitf5c21eaa1a9a1305773eb62e0594efa250cbc792 (patch)
tree530cefab5a5d8e02091fa1566d8bdf4d3de5e655 /src/mem/ruby/system/System.cc
parent676dc6d29287e15cb37b367a15a2e7c64f9c9007 (diff)
parentac15e42c1782f39882ab47745ed690b7d30b1f86 (diff)
downloadgem5-f5c21eaa1a9a1305773eb62e0594efa250cbc792.tar.xz
Merged with head.
Diffstat (limited to 'src/mem/ruby/system/System.cc')
-rw-r--r--src/mem/ruby/system/System.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mem/ruby/system/System.cc b/src/mem/ruby/system/System.cc
index 2c24c9ade..ad67cdc80 100644
--- a/src/mem/ruby/system/System.cc
+++ b/src/mem/ruby/system/System.cc
@@ -347,15 +347,16 @@ void RubySystem::printStats(ostream& out)
void RubySystem::clearStats() const
{
- /*
m_profiler_ptr->clearStats();
- for (int i=0; i<m_rubyRequestQueues.size(); i++)
- for (int j=0;j<m_rubyRequestQueues[i].size(); j++)
- m_rubyRequestQueues[i][j]->clearStats();
m_network_ptr->clearStats();
- for (int i=0; i < MachineType_base_level(MachineType_NUM); i++)
- m_controllers[i][0]->clearStats();
- */
+ for (map<string, CacheMemory*>::const_iterator it = m_caches.begin();
+ it != m_caches.end(); it++) {
+ (*it).second->clearStats();
+ }
+ for (map<string, AbstractController*>::const_iterator it = m_controllers.begin();
+ it != m_controllers.end(); it++) {
+ (*it).second->clearStats();
+ }
}
void RubySystem::recordCacheContents(CacheRecorder& tr) const