1. A method comprising: retrieving tag entries of tag memory corresponding to possible cache locations within an n-way associative cache for a memory address; determining an error-correcting code (ECC) for the tag/entries based on the tag entries of the tag memory; and, storing the ECC for the tag entries as part of the tag entries within the tag memory.