摘要 |
PROBLEM TO BE SOLVED: To reduce memory access due to an unnecessary prefetch instruction.SOLUTION: An arithmetic processing unit includes: a decoding part for decoding an instruction; an instruction holding part in which the instruction related to memory access among the decoded instructions is registered; a hardware prefetch control part for executing prefetch at a predetermined opportunity different from a prefetch instruction to preliminarily transfer data stored in a memory to a cache memory; and a control part for determining whether or not an unnecessary prefetch instruction to transfer the data included in the data to be transferred to the cache memory by the hardware prefetch control part from the memory to the cache memory is registered in the instruction holding part, and for, when the unnecessary prefetch instruction is registered in the instruction holding part, invalidating the unnecessary prefetch instruction. |