avadhpatel / marss

PTLsim and QEMU based Computer Architecture Research Simulator
http://www.marss86.org
129 stars 63 forks source link

Modify the cache structure and replacement algorithm #75

Open Pavitra07 opened 1 year ago

Pavitra07 commented 1 year ago

Can we modify the cache structure and replacement policy to test some attack defense techniques?

fitzfitsahero commented 1 year ago

ptlsim/lib/logic.h is where the replacement happens. Currently marss uses LRU replacement but it's simple enough to create your own function in it's place. Cache structure is also defined in that file.