A method, apparatus, and computer instructions for providing hardware
assistance to prefetch data during execution of code by a process or in
the data processing system. In response to loading of an instruction in
the code into a cache, a determination is made, by the processor unit, as
to whether metadata for a prefetch is present for the instruction. In
response to metadata being present for the instruction, selectively
prefetching data, from within a data structure using the metadata, into
the cache in a processor.