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
