Patents
US 7,200,740 B2#9639163 Most CitedExpiredUnited States (USPTO)Utility

Apparatus and method for speculatively performing a return instruction in a microprocessor

11Forward Citations (#9639163 Global)
0.6/yrCitation Velocity (#13716282 Global)
1.69Citation PageRank (#18927334 Global)
50Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A branch prediction apparatus that employs dual call/return stacks to predict return addresses in a microprocessor. The apparatus includes a first call/return stack that provides a speculative return address based upon a return instruction hit in a speculative branch target address cache (BTAC) of an instruction cache fetch address prior to decoding of the instruction to know whether it is actually a return instruction. The speculative return address is one of multiple return addresses simultaneously stored in the first call/return stack each pushed thereupon in response to the BTAC indicating a call instruction was fetched and prior to decoding the call instruction. The speculative return address is provided early in the pipeline and the microprocessor speculatively branches to the speculative return address. Later in the pipeline, a second call/return stack provides a non-speculative return address after the instruction is decoded and verified to be a return instruction. A comparator compares the speculative and non-speculative return addresses, and if the two addresses mismatch, the microprocessor branches to the non-speculative return address.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 50 · Forward citations: 11.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    An apparatus in a processor for speculatively performing a return instruction, comprising: a first call/return stack, configured for pushing thereon a plurality of return addresses of a corresponding plurality of call instructions in response to fetching from an instruction cache a plurality of cache lines predicted to include said corresponding plurality of call instructions, and for popping therefrom a first return address in response to fetching from said instruction cache a cache line predicted to include a return instruction, wherein said first return address is a top one of said pluralit

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

References Cited — Backward Prior Art (50)

PatentTitleYearCitations
US 4,181,942 AProgram branching method and apparatus198064
US 4,200,927 AMulti-instruction stream branch processing mechanism1980305
US 4,860,197 ABranch cache system with instruction boundary determination independent of parcel boundary1989123
US 5,142,634 ABranch prediction1992254
US 5,163,140 ATwo-level branch prediction cache1992144
US 5,313,634 AComputer system branch prediction of subroutine returns1994140
US 5,353,421 AMulti-prediction branch prediction mechanism1994108
US 5,355,459 APipeline processor, with return address stack storing only pre-return processed addresses for judging validity and correction of unprocessed address199455
US 5,394,530 AArrangement for predicting a branch target address in the second iteration of a short loop199564
US 5,404,467 ACPU having pipelined instruction unit and effective address calculation unit with retained virtual address capability199564
US 5,434,985 ASimultaneous prediction of multiple branches for superscalar processing1995136
US 5,513,330 AApparatus for superscalar instruction predecoding using cached instruction lengths199679
US 5,530,825 AData processor with branch target address cache and method of operation1996122
US 5,553,246 AShared bus mediation system for multiprocessor system199656
US 5,604,877 AMethod and apparatus for resolving return from subroutine instructions in a computer processor1997190
US 5,623,615 ACircuit and method for reducing prefetch cycles on microprocessors199787
US 5,623,614 ABranch prediction cache with multiple entries for returns having multiple callers199793
US 5,634,103 AMethod and system for minimizing branch misprediction penalties within a processor199779
US 5,687,349 AData processor with branch target address cache and subroutine return address cache and method of operation199758

Non-Patent Literature (5)

  • Bray et al; Strategies for Branch Target Buffers; Technical Report No. CSL-TR-91-480, Jun. 1991.
  • Chang et al; Alternative Implementations of Hybrid Branch Predictors; Proceedings of MICRO-28, 1995, IEEE.
  • Eberly et al. "The Correlation Branch Target Address Cache" May 1996.
  • IBM Technical Disclosure Bulletin NN9204269, "Return Address Stack Cache," Apr. 1992, pp. 269-271.
  • IEEE 100, The Authoritative Dictionary of IEEE Standard Terms, Seventh Edition. The Institute of Electrical Engineering, Inc. New York: Standards Information Network IEEE Press p. 135.