diff options
author | Brad Beckmann <Brad.Beckmann@amd.com> | 2010-01-29 20:29:22 -0800 |
---|---|---|
committer | Brad Beckmann <Brad.Beckmann@amd.com> | 2010-01-29 20:29:22 -0800 |
commit | f88faa6c11bbb5c5f95fe32ccffca73c7c4758c8 (patch) | |
tree | 73f1ccfa1f56d86a8787f6e04a8c2cb116167e8c /src/mem/ruby/system/CacheMemory.cc | |
parent | cfe41d0a1bc3b778995cd1b22f8d58037300143b (diff) | |
download | gem5-f88faa6c11bbb5c5f95fe32ccffca73c7c4758c8.tar.xz |
ruby: cleaned up ruby profilers
Cleaned up the ruby profilers by moving the memory controller profiling code
out of the main profiler object and into a separate object similar to the
current CacheProfiler. Both the CacheProfiler and MemCntrlProfiler are
specific to a particular Ruby object, CacheMemory and MemoryControl
respectively. Therefore, these profilers should not be SimObjects and
created by the python configuration system, but instead private objects. This
simplifies the creation of these profilers.
Diffstat (limited to 'src/mem/ruby/system/CacheMemory.cc')
-rw-r--r-- | src/mem/ruby/system/CacheMemory.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/ruby/system/CacheMemory.cc b/src/mem/ruby/system/CacheMemory.cc index 60783c433..8c5112183 100644 --- a/src/mem/ruby/system/CacheMemory.cc +++ b/src/mem/ruby/system/CacheMemory.cc @@ -57,7 +57,7 @@ CacheMemory::CacheMemory(const Params *p) m_latency = p->latency; m_cache_assoc = p->assoc; m_policy = p->replacement_policy; - m_profiler_ptr = p->cache_profiler; + m_profiler_ptr = new CacheProfiler(name()); } |