Hello Nazish, If you are using classic memory, edit src/mem/cache/base.cc file’s recvTimingReq function. You can access the old data through blk->data and the new data by pkt->getdata(this you need to search in src/mem/packet.hh, I may have made mistake in writing correct name of the function).
On Sun, May 12, 2019 at 2:52 AM Nazish Shabbir <nazishshabbi...@gmail.com> wrote: > Hello! I am relatively new to gem5 and trying to implement an encoding > scheme in it but not exactly sure what the best approach to implementing > this would be. > > The way i would like this to work is when there is a write access to the > last level cache, we need to read the old data in the last level cache. > Then we compare the new cache line with the old cache line to calculate the > HTs and STs. > > Where would you recommend i look to start implementing this? Which place > i need to start modifying? > > Thanks! > _______________________________________________ > 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