Method and system for propagating exception status in data registers and for detecting exceptions from speculative operations with non-speculative operations
Abstract
A method for supporting speculative execution includes designating operations as speculative or non-speculative, and then deferring exceptions generated by speculative operations while immediately reporting exceptions by non-speculative operations. If a speculative operation uses a result of a speculative operation that has generated an exception, the exception is propagated. Deferred exceptions are detected and reported using a check operation either incorporated into a non-speculative operation or inserted as a separate check operation. A system for supporting speculative execution includes a functional unit for recognizing a speculative operation and deferring any exceptions generated by such an operation. The functional unit may defer an exception by storing information indicating an error has occurred in the register file. To check for deferred exceptions, the functional unit then reads the register file. If an exception is detected, then the exception is processed and one or more of the speculative operation are re-executed (in a non-speculative mode) where necessary to process the exception.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 66.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method for processing speculative operations in a processor comprising: issuing a speculative operation in a processor; if execution of the speculative operation generates an exception, then setting a tag code in a tag field of a result register of the speculative operation to defer the processing of the exception; while executing a non-speculative operation, checking whether the tag code is set in an input register of the non-speculative operation; and if the tag code is set, then processing the exception and re-executing a non-speculative version of the speculative operation.
- Claim 2Depends on #1
The method of claim 1 further comprising: if the speculative operation generates an exception, then setting an exception code in the data field of the result register of the speculative operation; and propagating the exception code if the result registe
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 66 total)
References Cited — Backward Prior Art (6)
Non-Patent Literature (5)
- IBM Research Report, "Some Global Compiler Optimizations and Architectural Features for Improving Performance of Superscalers", by K. Ebcioglu and R. Groves, pp. 1-13.
- IBM Research Report, Some Global Compiler Optimizations and Architectural Features for Improving Performance of Superscalers , by K. Ebcioglu and R. Groves, pp. 1 13.
- Sentinel Scheduling for VLIW and Superscaler Processors, by S.A. Mahlke, W.Y. Chen, W.W. Hwu, B. Ramakrishna Rau and M.S. Schlansker.
- Sentinel Scheduling: A Model for Compiler Controlled Speculative Execution, by S.A. Mahlke, W.Y. Chen, R.A. Bringmann, R.E. Hank, W.W. Hwu, B. Ramakrishna Rau and M.S. Schlansker, ACM Transactions on Computer Systems, Nov. 1993, pp. 1 47.
- Sentinel Scheduling: A Model for Compiler-Controlled Speculative Execution, by S.A. Mahlke, W.Y. Chen, R.A. Bringmann, R.E. Hank, W.W. Hwu, B. Ramakrishna Rau and M.S. Schlansker, ACM Transactions on Computer Systems, Nov. 1993, pp. 1-47.