diff options
author | Derek Hower <drh5@cs.wisc.edu> | 2009-07-29 13:46:58 -0500 |
---|---|---|
committer | Derek Hower <drh5@cs.wisc.edu> | 2009-07-29 13:46:58 -0500 |
commit | d9ff3021ba990503acccc9094e00111f087d9a9a (patch) | |
tree | 883800c42917f3b84afd4ead0be5d80468b5d537 /src/mem/ruby/system/System.cc | |
parent | 469256d8239e453cdaa2431a2f879f5187809ef1 (diff) | |
download | gem5-d9ff3021ba990503acccc9094e00111f087d9a9a.tar.xz |
ruby: fixed clearStats
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 |