Patent ID: 7840848

Claim:
A method, comprising: detecting at least one error affecting a cache having a matching address tag for a fetching operation; determining a type of the at least one error affecting the cache; and performing a self-healing cache process based on the determined type of the at least one error, wherein performing a self-healing cache process based on the determined type of the at least one error further comprises setting a deallocate flag for a way having an address matching the address associated with the fetch operation; and wherein performing a self-healing cache process based on the determined type of the at least one error further comprises, when the determined type of the at least one error is one of an instruction cache type, a data cache type, or an unmodified copyback type, fetching data from a next level of cache and allocating data fetched from the next level to a different way in the cache set when the different way is available, else clearing a way in the cache and allocating data fetched from the next level to the cleared way in the cache set when a different way is not available.