diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2011-03-19 18:34:37 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2011-03-19 18:34:37 -0500 |
commit | 2f4276448b82b2aa077ae257171b5cb04b7048f6 (patch) | |
tree | 7e5d6bdcf8b3028ac7aed6c889efb820b2db91d9 /src/mem/ruby/profiler/CacheProfiler.cc | |
parent | dd9083115ed3f1ee297c2ff7255fdd3fee276e7a (diff) | |
download | gem5-2f4276448b82b2aa077ae257171b5cb04b7048f6.tar.xz |
Ruby: Convert AccessModeType to RubyAccessMode
This patch converts AccessModeType to RubyAccessMode so that both the
protocol dependent and independent code uses the same access mode.
Diffstat (limited to 'src/mem/ruby/profiler/CacheProfiler.cc')
-rw-r--r-- | src/mem/ruby/profiler/CacheProfiler.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mem/ruby/profiler/CacheProfiler.cc b/src/mem/ruby/profiler/CacheProfiler.cc index a969b9074..fcad227fb 100644 --- a/src/mem/ruby/profiler/CacheProfiler.cc +++ b/src/mem/ruby/profiler/CacheProfiler.cc @@ -94,10 +94,10 @@ CacheProfiler::printStats(ostream& out) const out << endl; - for (int i = 0; i < AccessModeType_NUM; i++){ + for (int i = 0; i < RubyAccessMode_NUM; i++){ if (m_accessModeTypeHistogram[i] > 0) { out << description << "_access_mode_type_" - << (AccessModeType) i << ": " + << (RubyAccessMode) i << ": " << m_accessModeTypeHistogram[i] << " " << 100.0 * m_accessModeTypeHistogram[i] / requests << "%" << endl; @@ -122,14 +122,14 @@ CacheProfiler::clearStats() m_prefetches = 0; m_sw_prefetches = 0; m_hw_prefetches = 0; - for (int i = 0; i < AccessModeType_NUM; i++) { + for (int i = 0; i < RubyAccessMode_NUM; i++) { m_accessModeTypeHistogram[i] = 0; } } void CacheProfiler::addCacheStatSample(CacheRequestType requestType, - AccessModeType accessType, + RubyAccessMode accessType, PrefetchBit pfBit) { m_cacheRequestType[requestType]++; @@ -138,7 +138,7 @@ CacheProfiler::addCacheStatSample(CacheRequestType requestType, void CacheProfiler::addGenericStatSample(GenericRequestType requestType, - AccessModeType accessType, + RubyAccessMode accessType, PrefetchBit pfBit) { m_genericRequestType[requestType]++; @@ -146,7 +146,7 @@ CacheProfiler::addGenericStatSample(GenericRequestType requestType, } void -CacheProfiler::addStatSample(AccessModeType accessType, +CacheProfiler::addStatSample(RubyAccessMode accessType, PrefetchBit pfBit) { m_misses++; |