Hi all,

I was trying to pass BaseCache object as a parameter to TimingSimpleCPU. Here's 
what I did:
1. In TimingSimpleCPU.py, I have added a parameter name 'cache':
    from Cache import BaseCache
    cache = (BaseCache(),"Passing cache object")
2. I have declared a pointer for this cache object in cpu/simple/timing.hh
   #include "mem/cache/base.hh"
   BaseCache *Cache;
3. In cpu/simple/timing.cc, I have tried to initialize Cache
   Cache(p->cache)
I am getting an attribute error which says ''Class TimingSimpleCPU has no 
parameter 'cache':" even though I have added cache as an option to the .py 
file. Also, I want to know if we can pass an object to any other object as a 
parameter (or) are there any restrictions?  

Thanks,
Saideepak.
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to