Hello, I'm not familiar with the prefetcher codes, but there is a stride prefetcher implemented in gem5. The code there may help.
Regards, -- Fernando A. Endo, PhD student and researcher Université de Grenoble, UJF France 2014-04-19 1:04 GMT+02:00 anonymous <[email protected]>: > Hi, > > I am attempting to write a custom Prefetcher. > However I am having some significant difficulties. > Particuarlly during the development. > > I have added a new fetcher (right now a copy of Tagged.cc/.hh) > recompiled gem5 and added it to CacheConfig.py and it links fine > I can turn on HWPrefetch debug and see a custom message > I added into the code so add good here. > > My problem is 2 fold. > > First I want to ensure I am printing the request data correctly, > Addr blkAddr = pkt->getAddr() & ~(Addr)(blkSize-1); > > Addr data_addr = pkt->getAddr(); > > DPRINTF(HWPrefetch, "BlockAddr %x data_addr %x Data: %x %s\n", > blkAddr, data_addr,*(pkt-> > getPtr<uint8_t>())) > > Secondly if I translate this address say data_addr+8 > how can I view the data at this location? It > doesn't seem possible to make sure I am accessing the correct data? > > Any help would be greatly appreciated thank you > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
