Data processing device with branch prediction mechanism
AssigneeFujitsu Limited
InventorMasaki Ukai
Life of this patent
Estimating the term…
Abstract
Phantom entries of entries in a branch history are completely detected using a flag identifying a phantom and a flag detecting the misalignment between the address of an instruction and an address where a branch has been predicted, which are provided for a queue executing branch instruction and controlling a phantom, and if the entries are not needed, they are erased. If there is an instruction that branches control flow, a phantom entry is intentionally created and instruction pre-fetching is applied to the entry.
Claims4
1-3. (canceled)
A data processing device with a branch prediction mechanism, comprising:
- a phantom target instruction detection unit detecting a branch instruction that is not executed at high speed or a non-branch instruction that branches control flow;
- and
- a phantom entry generation unit creating a branch prediction entry in a branch prediction mechanism, based on an entry corresponding to the instruction detected by the phantom target instruction detection unit and adding it to a branch history,
- wherein instruction process speed is improved by performing instruction pre-fetching using the branch prediction entry.
5-7. (canceled)
A method for processing instructions at high speed in a data processing device with a branch prediction mechanism, comprising:
- detecting a branch instruction that is not executed at high speed or a non-branch instruction that branches control flow;
- and
- creating a branch prediction entry to be stored in the branch prediction mechanism, based on an entry corresponding to the instruction detected in the detection step and adding it to the branch history,
- wherein instruction process speed is improved by performing instruction pre-fetching using the branch prediction entry.
Dependencies are inferred from the claim text.