Hi All,
I am trying to add replacement policy as an enumerated type but finding some
difficulty with it.
I have added the " class Replace(Enum): vals = ['no','lru', 'rrip',
'fa_lru']" in BaseCache.py and done the corresponding change in
builder.cc.This compiles without error but when it simulate I get the
following error
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/scratch/tripti/gem5-tournament/src/python/m5/main.py", line 356, in
main
exec filecode in scope
File "configs/spec2006/runspec.py", line 412, in <module>
m5.instantiate()
File "/scratch/tripti/gem5-tournament/src/python/m5/simulate.py", line 78,
in instantiate
for obj in root.descendants(): obj.createCCObject()
File "/scratch/tripti/gem5-tournament/src/python/m5/SimObject.py", line
866, in createCCObject
self.getCCParams()
File "/scratch/tripti/gem5-tournament/src/python/m5/SimObject.py", line
829, in getCCParams
setattr(cc_params, param, value)
TypeError: in method 'BaseCacheParams_replacement_policy_set', argument 2 of
type 'Enums::Replace'
Can someone let me know what else i have to do to overcome the TypeError?
--
Thanks & Regards,
Tripti
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users