Emulated branch effected by trampoline mechanism
First Claim
1. A computer system comprising:
- memory storing a program and an interruption handler, wherein the program has instructions including a trampoline check instruction and a special handler for handling an interruption; and
a processor for executing the program and the interruption handler, wherein the processor includes an instruction pointer indicating a memory location of a current executing instruction, wherein the processor executes the trampoline check instruction which tests a condition and if the condition is true, causes the interruption and supplies an address displacement, wherein the interruption handler responds to the interruption and restarts execution of the program at a restart point indicating a memory location of the special handler, wherein the restart point is equal to a sum of the address displacement and a value of the instruction pointer at the time of the interruption.
1 Assignment
0 Petitions
Accused Products
Abstract
A computer system includes a processor for executing a program and an interruption handler from a memory. The processor includes an instruction pointer indicating a memory location of a current executing instruction. The processor executes a trampoline check instruction in the program which tests a condition and if the condition is true, causes an interruption and supplies an address displacement. The interruption handler responds to the interruption and restarts execution of the program at a restart point indicating a memory location of a special handler in the program. The restart point is a sum of the address displacement and a value of the instruction pointer at the time of the interruption. If the condition is false, normal control flow of the program is continued.
14 Citations
45 Claims
-
1. A computer system comprising:
-
memory storing a program and an interruption handler, wherein the program has instructions including a trampoline check instruction and a special handler for handling an interruption; and
a processor for executing the program and the interruption handler, wherein the processor includes an instruction pointer indicating a memory location of a current executing instruction, wherein the processor executes the trampoline check instruction which tests a condition and if the condition is true, causes the interruption and supplies an address displacement, wherein the interruption handler responds to the interruption and restarts execution of the program at a restart point indicating a memory location of the special handler, wherein the restart point is equal to a sum of the address displacement and a value of the instruction pointer at the time of the interruption. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23)
-
-
24. A method of executing instructions in a computer system, the method comprising:
-
executing a program having instructions including a trampoline check instruction and a special handler for handling an interruption;
executing the trampoline check instruction including;
testing a condition; and
if the condition is true, causing the interruption and supplying an address displacement; and
executing an interruption handler in response to the interruption including;
restarting execution of the program at a restart point indicating a memory location of the special handler, wherein the restart point is equal to a sum of the address displacement and a value of an instruction pointer at the time of the interruption, wherein the instruction pointer indicates a memory location of a current executing instruction. - View Dependent Claims (25, 26, 27, 28, 29, 32, 33, 34, 35, 36, 37, 39, 40, 41, 42, 43, 44, 45)
-
-
30. The method of 24 further comprising the step of:
executing the special handler of the program to handle the interruption. - View Dependent Claims (31)
-
38. The method of 37 wherein the special handler comprises recovery code and execution of the recovery code includes re-executing the second instruction.
Specification