Patent ID: 8874849

Claim:
A method for copying a block from a memory into a cache, the block including data stored in at least a first sector and a second sector in the memory, where the first and second sectors are non-consecutive sectors, the cache including a tag array and a data array, the tag array effective to map where data from the memory is stored in the data array, the method comprising: copying, by a processor, first data in the first sector of the block from the memory into a start sector of a way of the data array; copying, by a processor, second data in the second sector of the block from the memory into a next sector of the way of the data array, wherein the next sector is consecutive to the start sector; and in response to the copying of the first and second data: updating, by the processor, the tag array to identify the first and second data as being stored in the data array; updating, by the processor, the tag array to identify the first and second data as being stored in the way in the data array; updating, by the processor, the tag array to identify the start sector in the way of the data array; and updating, by the processor, the tag array to store a length that corresponds to a number of sectors that store the first data and the second data in the cache.