摘要 |
<p>In an instruction prefetch circuit, even when a branch instruction is prefetched, the circuit continues a prefetch operation until branching is actually executed. Accordingly, when the branch instruction is a conditional branch instruction and not actually executed, the circuit continues the prefetch operation so that the prefetched instructions are efficiently supplied to a processor. It may be arranged that, when the branch instruction is an unconditional branch instruction, a branch destination address is extracted from the unconditional branch instruction and used as a prefetch address. Accordingly, the circuit continues the prefetch operation even when branching is executed. It may further be arranged that, when the branch instruction is a conditional branch instruction, a branch destination address is extracted from the conditional branch instruction and further a branch prediction is performed. When branching is expected based on the branch prediction, the branch destination address is used as a prefetch address. Accordingly, as long as the branch prediction does not fail, the circuit continues the prefetch operation. <IMAGE></p> |