1. A method, comprising: performing, by a computer: detecting an error in a cache, wherein the error is associated with a particular cache line; and in response to said detecting, executing a flush-retire instruction, wherein the flush-retire instruction is a single hardware instruction, and wherein said executing causes the computer to atomically perform: flushing the cache line to memory; and disabling subsequent allocation of a cache location that held the cache line.