Claims
- 1. A method for executing a context-altering instruction within a processor, said method comprising the steps of:
- providing a machine state register and a shadow machine state register in said processor, wherein said processor identifies a context by reference to one of said machine state register and said shadow machine state register;
- copying a first state of said machine state register to said shadow machine state register;
- executing instructions in accordance with a context identified by said first state of said shadow machine state register;
- altering said first state of said shadow machine state register to a second state in response to decoding a context-altering instruction;
- thereafter, executing said context-altering instruction and any subsequent instructions in accordance with said second state of said shadow machine state register; and
- altering said first state of said machine state register to said second state in response to a completion of said context-altering instruction, such that context synchronization operations are avoided.
- 2. The method according to claim 1, wherein said method further includes steps of altering said second state of said shadow machine state register to said first state in response to decoding a second context-altering instruction, and thereafter, executing said second context-altering instruction and any subsequent instructions in accordance with said first state of said shadow machine state register.
- 3. The method according to claim 1, wherein said first state is a logical "1."
- 4. The method according to claim 1, wherein said second state is a logical "0."
- 5. A processor capable of executing context-altering instructions, said processor comprising:
- a machine state register and a shadow machine state register, wherein said processor identifies a context by reference to one of said machine state register and said shadow machine state register;
- means for copying a first state of said machine state register to said shadow machine state register;
- means for executing instructions in accordance with a context identified by said first state of said shadow machine state register;
- means for altering said first state of said shadow machine state register to a second state in response to decoding a context-altering instruction;
- means for executing said context-altering instruction and any subsequent instructions in accordance with said second state of said shadow machine state register; and
- means for altering said first state of said machine state register to said second state in response to a completion of said context-altering instruction, such that context synchronization operations are avoided.
- 6. The processor for executing context-altering instructions according to claim 5, wherein said processor further includes means for altering said second state of said shadow machine state register to said first state in response to decoding a second context-altering instruction and means for executing said second context-altering instruction and any subsequent instructions in accordance with said first state of said shadow machine state register.
- 7. The processor according to claim 5, wherein said first state is a logical "1."
- 8. The processor according to claim 5, wherein said second state is a logical "0."
- 9. A data processing system, comprising:
- a memory;
- a processor capable of executing context-altering instructions, including:
- a machine state register and a shadow machine state register, wherein said processor identifies a context by reference to one of said machine state register and said shadow machine state register;
- means for copying a first state of said machine state register to said shadow machine state register;
- means for executing instructions in accordance with a context identified by said first state of said shadow machine state register;
- means for altering said first state of said shadow machine state register to a second state in response to decoding a context-altering instruction;
- means for executing said context-altering instruction and any subsequent instructions in accordance with said second state of said shadow machine state register; and
- means for altering said first state of said machine state register to said second state in response to a completion of said context-altering instruction, such that context synchronization operations are avoided.
- 10. The data processing system according to claim 9, wherein said processor further includes means for altering said second state of said shadow machine state register to said first state in response to decoding a second context-altering instruction and means for executing said second context-altering instruction and any subsequent instructions in accordance with said first state of said shadow machine state register.
- 11. The data-processing system according to claim 9, wherein said first state is a logical "1."
- 12. The data-processing system according to claim 9, wherein said second state is a logical "0."
Parent Case Info
This is a continuation, of application Ser. No. 08/533,047, filed Sep. 25, 1995, now abandoned.
US Referenced Citations (18)
Non-Patent Literature Citations (1)
Entry |
IBM Technical Disclosure Bulletin, vol. 31, No. 4, Sep. 1988, "Fast Parallel Processor Notification". |
Continuations (1)
|
Number |
Date |
Country |
Parent |
533047 |
Sep 1995 |
|