a problem with defining and instantiating a class

M

Mahmood Naderan

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;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top