Claims
- 1. A method of locating in a branch history table a branch prediction bits set indicating a direction of a plurality of branch instructions in a bunch of instructions, each instruction having at least one unique identifier, the method comprising:
- building an address composed from a fetch address and bits in a history register to access said branch history table, the address composed having lower bits that are a replica of a corresponding lower bits of the fetch address and having upper bits that are hashed with the bits in the history register;
- accessing the bunch of instructions using the fetch address;
- accessing the branch prediction bits set from the branch history table using the address composed, the branch prediction bits set corresponding to the plurality of branch instructions in the bunch of instructions;
- processing the accessed bunch of instructions; and
- updating the history register and the branch history table based on said branch prediction bits set accessed and the processed bunch of instructions to correlate a first group of branch instructions in the accessed bunch of instructions with a second group of branch instructions in a next bunch of instructions.
- 2. The method in claim 1, wherein each instruction of the accessed bunch of instructions comprises at least one byte and the storage address corresponding to each instruction of the accessed bunch of instructions is a storage address of a byte of said each instruction.
- 3. The method in claim 1, wherein the correspondence between each branch instruction in the accessed bunch of instructions and the branch prediction bits set is a one-to-one correspondence.
- 4. The method in claim 1, further comprising the step of predicting for a branch instruction of the accessed bunch of instructions using at least one predictor bit of the branch prediction bits set.
- 5. The method in claim 4, wherein the at least one predictor bit corresponding to the branch instruction in the accessed bunch of instructions is used for predicting a number of branch instructions in the accessed bunch of instructions that are at least one from the group of taken and not taken.
RELATED APPLICATIONS
This is a continuation of application(s) Ser. No. 08/601,744 filed Feb. 15, 1996, now issued U.S. Pat. No. 5,742,805, incorporated by reference herein in its entirety.
US Referenced Citations (5)
Continuations (1)
|
Number |
Date |
Country |
Parent |
601744 |
Feb 1996 |
|