diff options
author | David Hashe <david.hashe@amd.com> | 2015-07-20 09:15:18 -0500 |
---|---|---|
committer | David Hashe <david.hashe@amd.com> | 2015-07-20 09:15:18 -0500 |
commit | 1850ed410fc85d7ac367dc7b378e5509d62ed900 (patch) | |
tree | bf5fa000a7eb57681afea983309e47faf27fb033 /src/mem/ruby/structures/Cache.py | |
parent | 74ca89f8b7d9b340d1d4f83511b57a2dfa2a70df (diff) | |
download | gem5-1850ed410fc85d7ac367dc7b378e5509d62ed900.tar.xz |
ruby: initialize replacement policies with their own simobjs
this is in preparation for other replacement policies that take additional
parameters.
Diffstat (limited to 'src/mem/ruby/structures/Cache.py')
-rw-r--r-- | src/mem/ruby/structures/Cache.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mem/ruby/structures/Cache.py b/src/mem/ruby/structures/Cache.py index 3acec32cf..7f26e659f 100644 --- a/src/mem/ruby/structures/Cache.py +++ b/src/mem/ruby/structures/Cache.py @@ -29,6 +29,7 @@ from m5.params import * from m5.proxy import * +from PseudoLRUReplacementPolicy import PseudoLRUReplacementPolicy from m5.SimObject import SimObject class RubyCache(SimObject): @@ -38,7 +39,8 @@ class RubyCache(SimObject): size = Param.MemorySize("capacity in bytes"); latency = Param.Cycles(""); assoc = Param.Int(""); - replacement_policy = Param.String("PSEUDO_LRU", ""); + replacement_policy = Param.ReplacementPolicy(PseudoLRUReplacementPolicy(), + "") start_index_bit = Param.Int(6, "index start, default 6 for 64-byte line"); is_icache = Param.Bool(False, "is instruction only cache"); |