Method and apparatus for generating return address predictions for implicit and explicit subroutine calls using predecode information
Abstract
An apparatus for emulating the branch prediction behavior of an explicit subroutine call is disclosed. The apparatus includes a first input which is configured to receive an instruction address and a second input. The second input is configured to receive predecode information which describes the instruction address as being related to an implicit subroutine call to a subroutine. In response to the predecode information, the apparatus also includes an adder configured to add a constant to the instruction address defining a return address, causing the return address to be stored to an explicit subroutine resource, thus, facilitating subsequent branch prediction of a return call instruction.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 19 · Forward citations: 2.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method of emulating branch prediction behavior of an explicit subroutine call, the method comprising: predecoding an instruction associated with an instruction address to define predecode information; determining whether the predecode information indicates the instruction address as a beginning of an implicit subroutine call; recognizing the instruction address as indicating the implicit subroutine call to a subroutine; calculating a return address from the instruction address; and storing the return address to an explicit subroutine resource.
- Claim 2Depends on #1
The method of claim 1 , further comprising: reading the return address from the explicit subroutine resource in response to a branch instruction indicating a return call from the subroutine.
- Claim 3Depends on #2
The method of claim 2 , further comprising: redirecting a
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 (19)
Non-Patent Literature (4)
- European Search Report-EP1215447-Search Authority-Munich-Jun. 14, 2012, all pages (1-7).
- International Search Report-PCT/US07/077340, International Search Authority-European Patent Office-Apr. 10, 2008.
- Taiwan Search Report-TW096132259-TIPO-Mar. 15, 2011, all pages(1).
- Written Opinion-PCT/US07/077340, International Search Authority-European Patent Office-Apr. 10, 2008.