Thank you Dongwoo Lee, now all works greats.

​Best Regards

             Roberto


On Wed, Sep 25, 2013 at 1:17 PM, Dongwoo Lee <dongwoo...@dal.snu.ac.kr>wrote:

>  Use the python function 'eval()'
>
> For example,
> repl = "LRU()"
> tags = eval(repl)
>
>
> -Dongwoo Lee
>
>
> 2013-09-25(수) 오전 7:02, Roberto Rodríguez-Rodríguez 쓴 글:
>
>  Thank you Dongwoo Lee, it worked perfectly.
>
>  Now I just need to add the tags selection as an option in Options.py for
> use it in CacheConfig.py.
>
>  The problem is the asignation has to be done as tags=LRU() and not as
> tags="LRU()", and there is not data type in Options.py that supports this
> format (not a string)
>
>
> Saludos
>              Roberto
>
>
> On Mon, Sep 23, 2013 at 5:55 AM, Dongwoo Lee <dongwoo...@dal.snu.ac.kr>wrote:
>
>>  Sorry,
>> src/mem/cache/BaseCache.py
>>
>> 2013-09-23(월) 오후 12:47, Dongwoo Lee 쓴 글:
>>
>> Try to check the following
>>
>> src/mem/cache/base.cc  (at the bottom)
>> src/mem/cache/tags/Tags.py
>> src/mem/cache/tags/BaseCache.py
>>
>> and use 'configs/common/Caches.py'
>>
>> for example,
>>
>> class L1Cache(BaseCache):
>>     ...
>>     tags = LRU()
>>
>>
>> 2013-09-23(월) 오전 7:15, Roberto Rodríguez-Rodríguez 쓴 글:
>>
>>  Hello everyone,
>>
>>  I am working on cache replacement policies using the classic memory
>> model, I was using a gem5 version from April but I have a problem because
>> one Parsec benchmark (canneal) finish incorrectly with LRU based
>> policies.
>>
>>  I tested an updated version of gem5 (the version from today) and the
>> benchmark works perfectly, I tried to implement all my policies into the
>> new version of the simulator but I see that the way the cache replacement
>> policies were definied have changed.
>>
>>  There is not builder.cc, I the old versions I added a new variable in
>> src/mem/cache/BaseCache.py (replPolicy = Param.String("LRU", "")) and I
>> used that variable in src/mem/cache/builder.cc. Could somebody tell me
>> how can I add a new cache replacement policy in the new simulator version?
>>
>>  ​ Thanks in advance
>>
>>              Roberto
>>
>>
>> _______________________________________________
>> gem5-users mailing 
>> listgem5-users@gem5.orghttp://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>>
>>
>>
>> _______________________________________________
>> gem5-users mailing list
>> gem5-users@gem5.org
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>
>
>
> _______________________________________________
> gem5-users mailing 
> listgem5-users@gem5.orghttp://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
>
>
> _______________________________________________
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to