Patent ID: 8495299

Claim:
A method of caching a memory in a computing device, the method comprising: operating a cache controller, which implements at least one of a copy operation and a memory swap operation, by performing acts, including: establishing a mapping for each cache block of a plurality of cache blocks in a cache such that each of the mappings associates an address in the memory with an associated cache block; receiving a command from a processor to modify at least one of the mappings; and modifying the at least one mapping in response to the command, wherein: if the cache controller implements the copy operation, the acts further include: receiving a copy command from the processor to copy source data from a source address in the memory to a destination address in the memory; and modifying a particular mapping associated with a particular cache block that stores the source data such that the address associated with the particular mapping is changed from the source address to the destination address, and wherein if the cache controller implements the memory swap operation, the acts further include: receiving a memory swap command from the processor; first changing a first swap mapping for a first swap cache block from a first swap address to a second swap address; and second changing a second swap mapping for a second swap cache block from the second swap address to the first swap address.