Mechanism for delivering precise exceptions in an out-of-order processor with speculative execution
First Claim
1. A method of handling an exception in a processor comprising:
- setting a state upon detection of an exception;
signaling a trap for the exception if the state is set; and
based on a class of the exception, processing the exception differently before signaling the trap.
2 Assignments
0 Petitions
Accused Products
Abstract
A method of handling an exception in a processor includes setting a state upon detection of an exception, signaling a trap for the exception if the state is set, and based on a class of the exception, processing the exception differently before signaling the trap. The method may include replaying an instruction causing the exception before signaling the trap for the exception based on the class of the exception. The method may include replaying the instruction causing the exception after the instruction causing the exception becomes an oldest, unretired instruction. The method may include signaling the trap for the exception after an instruction causing the exception becomes an oldest, unretired instruction. The method may include marking an instruction causing the exception as complete without issuing the instruction causing the exception. An apparatus for handling exceptions in a processor includes an instruction scheduler for setting a state upon detection of an exception and signaling a trap for the exception if the state is set. The instruction scheduler, based on a class of the exception, processes the exception differently before signaling the trap.
-
Citations
11 Claims
-
1. A method of handling an exception in a processor comprising:
-
setting a state upon detection of an exception;
signaling a trap for the exception if the state is set; and
based on a class of the exception, processing the exception differently before signaling the trap. - View Dependent Claims (2, 3, 4, 5)
replaying an instruction causing the exception before signaling the trap for the exception based on the class of the exception.
-
-
3. The method of claim 2 further comprising:
replaying the instruction causing the exception after the instruction causing the exception becomes an oldest, unretired instruction.
-
4. The method of claim 1 further comprising:
signaling the trap for the exception after an instruction causing the exception becomes an oldest, unretired instruction.
-
5. The method of claim 1 further comprising:
marking an instruction causing the exception as complete without issuing the instruction causing the exception.
-
6. An apparatus for handling exceptions in a processor comprising:
-
an instruction scheduler for setting a state upon detection of an exception; and
for signaling a trap for the exception if the state is set; and
wherein the instruction scheduler, based on a class of the exception, processes the exception differently before signaling the trap. - View Dependent Claims (7, 8, 9, 10)
replaying an instruction causing the exception before signaling the trap for the exception based on the class of the exception. -
8. The apparatus of claim 7 wherein the instruction scheduler is further for
replaying the instruction causing the exception after the instruction causing the exception becomes an oldest, unretired instruction. -
9. The apparatus of claim 6 wherein the instruction scheduler is further for
signaling the trap for the exception after an instruction causing the exception becomes an oldest, unretired instruction. -
10. The apparatus of claim 6 wherein the instruction scheduler is further for
marking an instruction causing the exception as complete without issuing the instruction causing the exception.
-
-
11. An apparatus for handling exceptions in a processor comprising:
-
means for setting a state upon detection of an exception;
means for signaling a trap for the exception if the state is set; and
means for processing the exception differently based on a class of the exception before the signaling of the trap.
-
Specification