Check in src/mem/cache_builder.cc to see how everything is being setup
w/respect to replacement policies. Specifically, note how on line 120 there
is a "repl=NULL" condition that relates to the parameters being set in
src/mem/cache/BaseCache.py and configs/common/Caches.py

Also, look into the code to figure out how "Tags" objects work and how (if I
remember correctly) you need to change the tag to change the replacement
policy. The different replacement policies should then be accessible by
following a method similar to src/mem/cache/tags/*.

It may take a while to digest but after reading that code, you'll have a
good idea of what's going on.

I'm not sure how Ruby will go about changing this so maybe the Ruby folks
can chime in there if they so wish.

On Sat, Jan 29, 2011 at 12:55 PM, pradeep sahoo <[email protected]>wrote:

> And also from trace flags  i am not seeing any information about the
> replacement policies i have given
>
>
> On Sat, Jan 29, 2011 at 11:19 PM, Nilay Vaish <[email protected]> wrote:
>
>> On Sat, 29 Jan 2011, pradeep sahoo wrote:
>>
>>  Yeah
>>>
>>>
>>> On Sat, Jan 29, 2011 at 10:47 PM, Nilay Vaish <[email protected]> wrote:
>>>
>>>  On Sat, 29 Jan 2011, pradeep sahoo wrote:
>>>>
>>>>  Hi all
>>>>
>>>>>
>>>>>             I want to implement 2 different replacement policies ,one
>>>>> for
>>>>> L1 and another for L2.
>>>>>
>>>>>            For this i have created an Enum list replacement_policy
>>>>> comprising of four different policies and i have written code for them
>>>>> in
>>>>> SRC.
>>>>>
>>>>>            Then i have given one policy for L1 and another for L2 in
>>>>> class L1 and L2 in BaseCache.py.
>>>>>
>>>>>                    It successfully builds and also runs but whatever
>>>>> policy i am giving it takes always LRU.
>>>>>
>>>>>
>>>>>  Are you using Ruby?
>>>>
>>>> --
>>>> Nilay
>>>> _______________________________________________
>>>> m5-users mailing list
>>>> [email protected]
>>>> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>>>>
>>>>
>>> No i m not using Ruby as said by Biswabandan.Whether i wd use Ruby???
>>> Please
>>> suggest me how to do it if possible.
>>>
>>>  How do you know that the policy in use is LRU? Where do you check this?
>>
>>
>> --
>> Nilay
>> _______________________________________________
>> m5-users mailing list
>> [email protected]
>> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>>
>
>
>
> --
> *PRADEEP KUMAR SAHOO
>        MTECH GRAD
>        RISE LAB
>        IIT MADRAS
>       CHENNAI-36
> *
>
> _______________________________________________
> m5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>



-- 
- Korey
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to