diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2012-07-12 08:39:19 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2012-07-12 08:39:19 -0500 |
commit | b913af440b17b1eb146afafb2ce5a1577910dde1 (patch) | |
tree | 60bd72c6f057d9b6a3b56a482fb0523ff18ed18b /src/mem/ruby/system/CacheMemory.cc | |
parent | ce4e9a9a50e9c80a132de881e486a4f9b5561fc0 (diff) | |
download | gem5-b913af440b17b1eb146afafb2ce5a1577910dde1.tar.xz |
Ruby: remove config information from ruby.stats
This patch removes printConfig() functions from all structures in Ruby.
Most of the information is already part of config.ini, and where ever it
is not, it would become in due course.
Diffstat (limited to 'src/mem/ruby/system/CacheMemory.cc')
-rw-r--r-- | src/mem/ruby/system/CacheMemory.cc | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/mem/ruby/system/CacheMemory.cc b/src/mem/ruby/system/CacheMemory.cc index a8e3523d3..6ba879e90 100644 --- a/src/mem/ruby/system/CacheMemory.cc +++ b/src/mem/ruby/system/CacheMemory.cc @@ -105,31 +105,6 @@ CacheMemory::~CacheMemory() } } -void -CacheMemory::printConfig(ostream& out) -{ - int block_size = RubySystem::getBlockSizeBytes(); - - out << "Cache config: " << m_cache_name << endl; - out << " cache_associativity: " << m_cache_assoc << endl; - out << " num_cache_sets_bits: " << m_cache_num_set_bits << endl; - const int cache_num_sets = 1 << m_cache_num_set_bits; - out << " num_cache_sets: " << cache_num_sets << endl; - out << " cache_set_size_bytes: " << cache_num_sets * block_size << endl; - out << " cache_set_size_Kbytes: " - << double(cache_num_sets * block_size) / (1<<10) << endl; - out << " cache_set_size_Mbytes: " - << double(cache_num_sets * block_size) / (1<<20) << endl; - out << " cache_size_bytes: " - << cache_num_sets * block_size * m_cache_assoc << endl; - out << " cache_size_Kbytes: " - << double(cache_num_sets * block_size * m_cache_assoc) / (1<<10) - << endl; - out << " cache_size_Mbytes: " - << double(cache_num_sets * block_size * m_cache_assoc) / (1<<20) - << endl; -} - // convert a Address to its location in the cache Index CacheMemory::addressToCacheSet(const Address& address) const |