What does the fill_this_level
and prefetch_metadata
arguments of CACHE::prefetch_line
do?
#433
-
I was looking at the implementation of prefetchers. As far as I understand, to issue a prefetch of an address
As far as I understand, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thanks @ngober for the clarification. To summarize, the first argument is the prefetch address. The second argument decides if the cache level with which the prefetcher is associated with should be filled or not. For example, if the prefetcher is associated with L2C and this argument is false, then the prefetch request will not be filled in L2C, rather it will only be filled in LLC. The last argument doesn't have any meaning in the source code. So it can be used for anything. It is typically used to pass information between prefetchers at different levels. |
Beta Was this translation helpful? Give feedback.
Thanks @ngober for the clarification. To summarize, the first argument is the prefetch address. The second argument decides if the cache level with which the prefetcher is associated with should be filled or not. For example, if the prefetcher is associated with L2C and this argument is false, then the prefetch request will not be filled in L2C, rather it will only be filled in LLC. The last argument doesn't have any meaning in the source code. So it can be used for anything. It is typically used to pass information between prefetchers at different levels.