| CPC G06F 12/0897 (2013.01) [G06F 12/0891 (2013.01); G06F 12/126 (2013.01)] | 20 Claims |

|
1. A method for allocating a cache line to a higher-level cache memory in response to an eviction request of a lower-level cache line in a lower-level cache memory, comprising:
determining whether the lower-level cache line is opportunistic;
determining, based on whether the lower-level cache line is opportunistic, whether a higher-level cache line of a plurality of higher-level cache lines in the higher-level cache memory has less or equal importance than the lower-level cache line; and
in response to the determining the higher-level cache line has less or equal importance than the lower-level cache line:
replacing the higher-level cache line in the higher-level cache memory with the lower-level cache line; and
associating whether the lower-level cache line is opportunistic with the higher-level cache line in the higher-level cache memory.
|