I even tried this one:
class L1Cache(BaseCache):
...
prefetcher = StridePrefetcher
However in the config.ini I see that prefetcher is set to NULL which is the
default value in BaseCache.py
[system.cpu.dcache]
type=BaseCache
....
prefetcher=Null
What is wrong with that instantiate?
--
// Naderan *Mahmood;
On Sun, Mar 4, 2012 at 11:01 AM, Mahmood Naderan <[email protected]>wrote:
> 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