| |
| | Untitled Document |
 | | If after the branch is finished executing, it is found that we really wanted to take the branch, then the (possible) next instruction that we had been executing is thrown out by the hardware, and we being executing the correct instruction, the branch target. |
 | | Then, when the next branch is encountered, the bit is checked, if it is on, we act as for a predict-taken strategy, if it is off, we act as for a predict-not-taken strategy. |
 | | If the address of the branch target was known in the IF stage, then predict-taken would have caused the same total number of stalls, it just would have occured after the second BNEZ instead of the first. |
| www.cs.umd.edu /class/fall2001/cmsc411/projects/branches/prediction.html (970 words) |
|