Link stack repair of erroneous speculative update
Abstract
Whenever a link address is written to the link stack, the prior value of the link stack entry is saved, and is restored to the link stack after a link stack push operation is speculatively executed following a mispredicted branch. This condition is detected by maintaining a count of the total number of uncommitted link stack write instructions in the pipeline, and a count of the number of uncommitted link stack write instructions ahead of each branch instruction. When a branch is evaluated and determined to have been mispredicted, the count associated with it is compared to the total count. A discrepancy indicates a link stack write instruction was speculatively issued into the pipeline after the mispredicted branch instruction, and pushed a link address onto the link stack. The prior link address is restored to the link stack from the link stack restore buffer.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of managing a link stack comprising a plurality of entries, each entry operative to store a link address, the method comprising: predicting a branch evaluation of a branch instruction; in response to the prediction, speculatively executing instructions; saving a prior value of a link stack entry in a link stack restore buffer in response to determining that the speculative instruction will write to the link stack, wherein the link stack restore buffer is separate from the link stack; speculatively writing a first link address associated with the speculative instruction to the link sta
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (8)
Non-Patent Literature (4)
- Guan-Ying Chiu et al: "Mechanism for Return Stack and Branch History Corrections Under Misprediction in Deep Pipeline Design" 2008 13th Asia-Pacific Computer Systems Architecture Conference, (Aug. 6, 2008), pp. 1-8, Piscataway, NJ, US Paragraphs 2.1 "Basic Operation of Return Adress Stack" and 2.2 "
- International Search Report-PCT/US08/078789, International Search Authority-European Patent Office-Dec. 4, 2008.
- Skadron E et al: "Improving Prediction for Procedure Returns With Return-Address-Stack Repair Mechanisms" Micro-31. Proceedings of the 31st. Annual ACM/IEEE International Symposium on Microarchitecture. Dallas, TX, Nov. 30-Dec. 2, 1998; [Procedings of the Annual ACM/IEEE International Symposium on M
- Written Opinion-PCT/US08/078789, International Search Authority-European Patent Office Dec. 4, 2008.