Method for cancelling speculative conditional delay slot instructions
Abstract
A first tag is assigned to a branch instruction. Dependent on the type of branch instruction, a second tag is assigned to an instruction in the branch delay slot of the branch instruction. The second tag may equal the first tag if the branch delay slot is unconditional for that branch, and may equal a different tag if the branch delay slot is conditional for the branch. If the branch is mispredicted, the first tag is broadcast to pipeline stages that may have speculative instructions, and the first tag is compared to tags in the pipeline stages. If the tag in a pipeline stage matches the first tag, the instruction is not cancelled. If the tag mismatches, the instruction is cancelled.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
An apparatus comprising: a control unit of a processor to receive fetched instructions and to assign a first tag to identify which of the instructions are in a same basic block of instructions preceding a particular branch instruction within a program, the control unit to change the first tag to a second tag to be used with instructions following the particular branch instruction, including a delay slot instruction immediately following the branch instruction, when the delay slot instruction is a conditional instruction, but the control unit to retain the first tag for the delay slot instructi
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)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 7,761,692 B2 | Processor, compiler and compilation method | 2010 | 0 |
| US 2006242387 A1 | Processor, compiler and compilation method | — | 17 |
References Cited — Backward Prior Art (14)
Non-Patent Literature (5)
- Alexandre Farcy, Olivier Ternam, Roger Espasa, Toni Juan Dataflow analysis of branch mispredictions and its application to early resolution of branch outcomes 1998, IEEE Computer Society Press, Proceedings of the 31st annual ACM/IEEE international symposium on Microarchitecture, p. 59-68.
- Gerry Kane and Joe Heinrich, "MIPS RISC Architecture," MIPS Technologies, Inc., 1992, pp. 1-12 to 1-14, 3-19 to 3-21, A-7, A-15, to A-38, A-50 to A-53, and C-6 to C-7.
- Halfhill; "Beyond Pentium II"; Dec. 1997; pp. 1-8 http://www.byte.com/art/9712/sec5/art1.htm.
- Harry Dwyer, H. C. Torn, An out-of-order superscalar processor with speculative execution and fast, precise interrupts, 1992, IEEE Computer Society Press, Proceedings of the 25th annual international symposium on Microarchitecture, p. 272-281.
- Heinrich; "MIPS R4000 Microprocessor User's Manual" 2nd Edition; 1994; p. 41.