you mean
    prefetch_on_access = Param.Bool(False,
         "notify the hardware prefetcher on every access (not just misses)")

If that is False (which is default) then prefetch is done on misses.
However if it is True, then prefetch is done on

(access AND miss) OR (access) OR (miss)

--
// Naderan *Mahmood;


On Mon, Nov 14, 2011 at 3:18 PM, biswabandan panda <[email protected]>wrote:

> there is option to make it run only for misses check in the pythin files
> of cache and prefetch.
>
> On Mon, Nov 14, 2011 at 5:07 PM, Mahmood Naderan <[email protected]>wrote:
>
>> Hi,
>> Just for a double check, is this statement true?
>>
>> The prefetcher is called on of the following cases:
>> 1- cache block is accesses
>> or
>> 2- that block was a prefetched block
>> or
>> 3- cache miss
>>
>> I said that because of the following code.
>>
>> if (satisfied) {
>>         if (prefetcher && (prefetchOnAccess || (blk &&
>> blk->wasPrefetched()))) {
>>             if (blk)
>>                 blk->status &= ~BlkHWPrefetched;
>>             next_pf_time = prefetcher->notify(pkt, time);
>>         }
>>         ....
>> } else {
>>         // miss
>>         if (mshr) {
>>          .....
>>         } else {
>>             // no MSHR
>>              .....
>>             if (prefetcher) {
>>                 next_pf_time = prefetcher->notify(pkt, time);
>>             }
>>         }
>> }
>>
>>
>> Thanks and sorry for taking up your time
>> --
>> // Naderan *Mahmood;
>>
>> _______________________________________________
>> gem5-users mailing list
>> [email protected]
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>
>
>
> --
>
> *thanks&regards
> *
> *BISWABANDAN*
>
>
>
>
>
>
> _______________________________________________
> 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

Reply via email to