CPC G06F 12/0862 (2013.01) [G06F 9/321 (2013.01); G06F 12/0811 (2013.01)] | 19 Claims |
1. An apparatus for pre-fetching data, the apparatus comprising:
a processor core;
pre-fetch logic circuit in communication with the processor core, the pre-fetch logic circuit being configured to:
generate cache pre-fetch requests for a program instruction identified by a program counter;
track one or more statistics with respect to the cache pre-fetch requests, including track a count of the cache pre-fetch requests that are generated for the program instruction over a recent interval, the one or more statistics including the count;
link the one or more statistics with the program counter; and
determine a pre-fetch degree of the cache pre-fetch requests for the program instruction based on the one or more statistics; and
a memory hierarchy in communication with the processor core and the pre-fetch logic circuit, the memory hierarchy comprising:
a main memory;
a hierarchy of caches; and
a memory controller configured to pre-fetch memory blocks identified in the cache pre-fetch requests, the memory blocks being pre-fetched from a current level in the memory hierarchy into a higher level of the memory hierarchy.
|