Claims
- 1. A method for providing a predicted target instruction in a processor, the method comprising:
- decoding an instruction set, wherein the instruction set includes:
- an operation code to indicate a branch instruction;
- an operation code to indicate a predict instruction, wherein each predict instruction has a first field and a second field to provide a referenced instruction address and a predicted target address, respectively;
- decoding a first instruction as a predict instruction;
- decoding a first field and a second field of the first instruction to provide a first referenced instruction address and a first predicted target address, respectively;
- retrieving from memory a predicted target instruction having an instruction address corresponding to the first predicted target address;
- decoding a second instruction as a branch instruction, where the second instruction has an instruction address corresponding to the first referenced instruction address; and
- storing in an association unit the first referenced instruction address and the first predicted target address as an associated pair of addresses;
- wherein, the step of retrieving from memory the predicted target instruction is performed before the step of decoding the second instruction only if the associated pair of addresses is resident in the association unit.
- 2. The method as set forth in claim 1, further comprising:
- executing the predicted target instruction if the second instruction is speculatively taken.
- 3. A method for providing a predicted target instruction in a processor, the method comprising:
- decoding an instruction set, wherein the instruction set includes:
- an operation code to indicate a branch instruction;
- an operation code to indicate a predict instruction, wherein each predict instruction has a first field and a second field to provide a referenced instruction address and a predicted target address, respectively;
- decoding a first instruction as a predict instruction;
- decoding a first field and a second field of the first instruction to provide a first referenced instruction address and a first predicted target address, respectively;
- retrieving from memory a predicted target instruction having an instruction address corresponding to the first predicted target address;
- decoding a second instruction as a branch instruction, where the second instruction has an instruction address corresponding to the first referenced instruction address;
- storing in an association unit the first referenced instruction address and the first predicted target address as an associated pair of addresses; and
- accessing the association unit to obtain the first predicted target address only if the second instruction has been decoded.
Parent Case Info
This application is a continuation of application Ser. No. 08/997,519, filed Dec. 23 1997, now abandoned.
US Referenced Citations (3)
Number |
Name |
Date |
Kind |
5742804 |
Yeh et al. |
Apr 1998 |
|
5805878 |
Rahman et al. |
Sep 1998 |
|
5940857 |
Nakanishi et al. |
Aug 1999 |
|
Continuations (1)
|
Number |
Date |
Country |
Parent |
997519 |
Dec 1997 |
|