Microprocessor including return prediction unit configured to determine whether a stored return address corresponds to more than one call instruction
Abstract
Various embodiments of methods and systems for implementing a return address prediction mechanism in a microprocessor are disclosed. In one embodiment, a return address prediction mechanism includes a return storage and a controller. The return storage includes one or more entries. One of the entries includes a count and a first return address that corresponds to a recently detected call operation. The controller is configured to receive a new return address that corresponds to a call instruction and to compare the new return address to the return address stored in the entry. If the new return address equals the return address in the entry, the controller may be configured to increase the value of the count in the entry. By increasing the count instead of allocating a new entry in the return storage to the new return address, the effective size of the return storage may be increased.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 49.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A microprocessor, comprising: an instruction cache configured to fetch instructions for execution; and a return prediction unit coupled to said instruction cache, wherein said return prediction unit comprises: a return storage including a first entry configured to store a count value and a return address of a previously detected call instruction; and a controller coupled to the return storage and configured to compare the return address stored in the first entry to a new return address of a subsequently detected call instruction, and in response to determining that the stored return address is
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 49 total)
References Cited — Backward Prior Art (5)
Non-Patent Literature (1)
- "Stacks," www.funducode.com/freec/datastructure/datastruct1.htm, Apr. 22, 2001, pp. 1-4.