| CPC G06F 12/0877 (2013.01) [G06F 2212/60 (2013.01)] | 20 Claims |

|
1. An apparatus for implementing a last use cache policy, the apparatus comprising:
a cache comprising a plurality of cache lines; and
a cache controller configured to:
retrieve one or more memory attributes from memory, wherein the one or more memory attributes are associated with a memory address and are stored in the memory as part of allocation of the memory address;
store the one or more memory attributes retrieved from memory in a cache line of the cache;
receive a read command that includes the memory address; and
change a state of the cache line from dirty to a different state responsive to the one or more memory attributes stored in the cache line indicating that the read command comprises a last use of data at the memory address, wherein the one or more memory attributes stored in the cache line indicate that the data at the memory address is no longer needed after the read command.
|