a problem with defining and instantiating a class

Mahmood Naderan nt_mahmood at yahoo.com
Sun Mar 25 10:12:15 CEST 2012

Dear all,I am using GEM5, a simulator, which uses python for reading configuration files.
For example in Caches.py http://repo.gem5.org/gem5/file/7d95b650c9b6/configs/common/Caches.py#l31
a class L1cache is defined which we can set its parameters (size, assoc, ...).

The BaseCache is fully defined in http://repo.gem5.org/gem5/file/7d95b650c9b6/src/mem/cache/BaseCache.py
There is no problem setting some parameters like size, ...

Now here is the problem:
In BaseCache.py, there is a parameter "prefetcher" which is set at http://repo.gem5.org/gem5/file/7d95b650c9b6/src/mem/cache/BaseCache.py#l60

This parameter will read the Prefetcher.py located at http://repo.gem5.org/gem5/file/7d95b650c9b6/src/mem/cache/prefetch/Prefetcher.py
Now when I set "prefetcher=StridePrefetcher" it doesn't make any sense and the prefetcher will remain "NULL" which is the default value.

Can you help? how can I fix that?

// Naderan *Mahmood;

More information about the Python-list mailing list