Hi,
You could write a update_assoc_size() inside cache or tag folder. I
think it's possible. If i am not wrong you could do it inside cacheset.hh
for assoc.
On Fri, Nov 22, 2013 at 10:26 PM, Rohit Shukla <[email protected]>wrote:
> Hi everyone,
>
> I am trying to simulate selective way cache accesses using classic memory
> model in gem5. The aim of my work is to count the number of cache line
> accesses using a counter and if the value of counter is less than
> threshold, then disable some of the cache ways, otherwise keep it as it is.
> The threshold will be predetermined and set by the user.
>
> I am not able to figure out how to dynamically disable the ways in cache.
> I can do this by changing the associativity, and cache size. But I am not
> sure how to do it dynamically.
>
> One of the suggestions in gem5 website is to use checkpoint-restore
> option. When the system starts to simulate after checkpoint, it will read
> in the new cache assoc and size values. Is this approach correct? Can you
> suggest some other way to solve this problem?
>
> Thank you very much for the help.
>
> P.S. I am new to gem5 and this is the first time I am coding in any
> processor simulator.
>
> Regards
> Rohit
> Graduate Student
> University of Wisconsin-Madison
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
--
*thanks®ards*
*BISWABANDAN*
http://www.cse.iitm.ac.in/~biswa/
“We might fall down, but we will never lay down. We might not be the best,
but we will beat the best! We might not be at the top, but we will rise.”
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users