Hello everyone,
I am working in gem5 version 22.0, I wan to design a cache
replacement policy as a part of my research work, which evicts blocks based
on the contents i.e. considering a number of zeros and ones. Is there a
possibility to get the content of cache blok, in gem5?
Thanks and Regards,
Sadhana,
Research Scholar-NITK,
Dept. of Computer Science and Engineering
.
Hey Sadhana,
First of i'll i'd read over the replacement policy documentation: https://www.gem5.org/documentation/general_docs/memory_system/replacement_policies/.
There are lot of options to get information on a cache blog. Generally I think this Stackoverflow gives the most comprehensive options on this: https://stackoverflow.com/questions/64954075/how-to-output-the-data-in-the-cache-set-when-the-cache-is-replaced. The most important thing to to keep in mind in the CacheBlk->data
will always get you the data in the cache block (it's a uint8_t*
).
I don't know exactly what the options are here but they may be a debug flag that gets you what you want. For more information on using debug flags: https://www.gem5.org/documentation/learning_gem5/part2/debugging/.
Kind regards,
Bobby
--
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616
On Sep 11, 2023, at 10:17 PM, Sadhana . via gem5-users gem5-users@gem5.org wrote:
Hello everyone,
I am working in gem5 version 22.0, I wan to design a cache replacement policy as a part of my research work, which evicts blocks based on the contents i.e. considering a number of zeros and ones. Is there a possibility to get the content of cache blok, in gem5?
Thanks and Regards,
Sadhana,
Research Scholar-NITK,
Dept. of Computer Science and Engineering
.
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-leave@gem5.org