Pipelined microprocessor, apparatus, and method for performing early correction of conditional branch instruction mispredictions
Abstract
An apparatus and method for performing early correction of a conditional branch instruction in a pipeline microprocessor is disclosed. Early branch correction logic examines early status flags to detect a branch misprediction. The early status flags are generated in response to an instruction preceding the branch instruction earlier in the pipeline than the architected status flags are generated and may or may not be valid. If the early status flags are valid and indicate a misprediction, the early correction logic corrects the misprediction. If the pipeline stages below the early correction logic stage become void of uncompleted flag-modifying instructions, such as after a pipeline flush, the early status flags are re-validated by copying to the architected status flags to the early status flags. Late branch correction logic corrects the misprediction if the architected status flags indicate a misprediction and if the early correction logic did not correct the misprediction.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 23 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
An apparatus for correcting a prediction of a branch instruction in a pipeline microprocessor, the prediction predicting whether a branch condition specified by the branch instruction is satisfied in architected status flags of the microprocessor, the apparatus comprising: early status flags, corresponding to and storing a newer state than the architected status flags, said early status flags having a valid indicator; early branch correction logic, for correcting the prediction of the branch instruction if said valid indicator indicates said early status flags are valid and if said early statu
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
References Cited — Backward Prior Art (23)
Non-Patent Literature (5)
- Farcy A et al: "Dataflow analysis of branck mispredictions and its application to early resolution of branch outcomes" Micro-31. Proceedings of the 31st. Annual ACM/IEEE International Symposium on Microarchitecture, Dallas, TX, Nov. 30-Dec. 2, 1998, Proceedings of the Annual ACM/IEEE International S
- IA-32 Intel Architecture Software Developer's Manual vol. 2: Instruction Set Reference, 2001.
- IA-32 Intel Architecture Software Developer's Manual vol. 3: System Programming Guide, 2001.
- Inoue, Performing Parallel Operations Subject to Operand Register Interference Using Operand History Storage, Pub. No.: US 2002/00499895 A1, Apr. 25, 2002.
- Jim Handy, The Cache Memory Book, 2nd Edition, 1998, pp. 47 and 222.