Hi,
How can I enable the prefetcher and change parameters in the latest
revision. Seems that the prefetcher is introduced as a new object/class

Is this correct
class L1Cache(BaseCache):
    size = '32kB'
    ...
    prefetcher = 'StridePrefetcher'

How can I change the parameters then? For example I want to set prefetch
degree other than default value.
I write this:

class prefetcher(BasePrefetcher):
    degree = 8

class L1Cache(BaseCache):
    size = '32kB'
    ...
    prefetcher = 'StridePrefetcher'


However I get this error:
  File "/home/mahmood/gem5/src/python/m5/SimObject.py", line 263, in
_set_param
    # It's a little funky to have a class as a parent, but these
  File "/home/mahmood/gem5/src/python/m5/params.py", line 177, in convert
    # that the value is a vector (list) of the specified type instead of a
TypeError: __init__() takes exactly 1 argument (2 given)
Error setting param L1Cache.prefetcher to StridePrefetcher


--
// Naderan *Mahmood;
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to