If there is a way to view the data of a particular address prior to
its actual request, then what does prefetching mean here? With
prefetching, you generate an address and issue later to bring the
data.



On 4/19/14, anonymous <[email protected]> wrote:
> Fernando Endo <fernando.endo2 <at> gmail.com> writes:
>
>>
>>
>> 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 researcherUniversité de Grenoble, UJFFrance
>>
>> 2014-04-19 1:04 GMT+02:00 anonymous <spamfolder3 <at> gmail.com>:
>> 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 listgem5-users <at> gem5.orghttp://m5sim.org/cgi-
> bin/mailman/listinfo/gem5-users
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> gem5-users mailing list
>> gem5-users <at> gem5.org
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
>
> Hey thank you very much for the reply.
> Yes I have looked through the Stride Prefetcher,
> and it is very interesting how they store
> the strides in a table. But it doesn't seem
> to help with my particular issue since from
> what I can tell the Stride are still contiguous blocks.
> I am prefetching specific blocks.
>
> Additionally I have a class member that is being fetched
> and I would very much like to be able
> to view individual properties of that class
> (i.e I would like to be able to check the data
> in particular properties to
> ensure I'm working on the right items)
>
>
> Any help on accessing or viewing data
> in particular properties from within
>  the prefetcher class would be greatly appreciated
>
> just as a note, I can't even seem to print out the data in
> newAddr from these pre fetchers. It seems the getPtr()
> is the only way to get data, and that only points to current data
> request. So I can't even work backward from that.
>
> Thank you again
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users


-- 
Regards,
Mahmood
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to