Method and apparatus for avoiding write-after-write hazards in an execute-ahead processor
Abstract
One embodiment of the present invention provides a system that avoids write-after-write (WAW) hazards while speculatively executing instructions. The system starts in a normal execution mode, wherein the system issues instructions for execution in program order. Upon encountering an unresolved data dependency during execution of an instruction, the system generates a checkpoint, defers the instruction, and executes subsequent instructions in an execute-ahead mode. During this execute-ahead mode, instructions that cannot be executed because of unresolved data dependencies are deferred, and other non-deferred instructions are executed in program order. If an unresolved data dependency is resolved during the execute-ahead mode, the system moves into a deferred mode wherein the system executes deferred instructions. While executing a deferred instruction, if dependency information for an associated destination register indicates that a WAW hazard potentially exists with a following non-deferred instruction, the system executes the deferred instruction to produce a result, and forwards the result to be used by subsequent instructions in a pipeline and/or deferred queue for the processor
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 5.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for avoiding write-after-write (WAW) hazards while speculatively executing instructions on a processor in an execute-ahead mode, comprising: issuing instructions for execution in program order during a normal execution mode; upon encountering an unresolved data dependency during execution of an instruction, generating a checkpoint, deferring the instruction, and executing subsequent instructions in the execute-ahead mode, wherein instructions that cannot be executed because of unresolved data dependencies are deferred, wherein other non-deferred instructions are executed in program or
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (5 of 5 total)
References Cited — Backward Prior Art (6)
Non-Patent Literature (1)
- "Beating in-order stalls with "flea-flicker" two-pass pipelining", by Ronald D. Barnes et al., Proceedings of the 36<SUP>th </SUP>International Symposium on Microarchitecture, 2003 IEEE.