diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-08-03 11:06:19 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-08-03 11:06:19 -0700 |
commit | f5c21eaa1a9a1305773eb62e0594efa250cbc792 (patch) | |
tree | 530cefab5a5d8e02091fa1566d8bdf4d3de5e655 /src/mem/ruby/system/System.cc | |
parent | 676dc6d29287e15cb37b367a15a2e7c64f9c9007 (diff) | |
parent | ac15e42c1782f39882ab47745ed690b7d30b1f86 (diff) | |
download | gem5-f5c21eaa1a9a1305773eb62e0594efa250cbc792.tar.xz |
Merged with head.
Diffstat (limited to 'src/mem/ruby/system/System.cc')
-rw-r--r-- | src/mem/ruby/system/System.cc | 15 |
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 |