f88faa6c11
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.
11 lines
318 B
Python
11 lines
318 B
Python
from m5.params import *
|
|
from m5.SimObject import SimObject
|
|
from Controller import RubyController
|
|
|
|
class RubyCache(SimObject):
|
|
type = 'RubyCache'
|
|
cxx_class = 'CacheMemory'
|
|
size = Param.Int("");
|
|
latency = Param.Int("");
|
|
assoc = Param.Int("");
|
|
replacement_policy = Param.String("PSEUDO_LRU", "");
|