Next: Control hazards: summary
Up: Control Hazards, Branch Prediction
Previous: Implementation:
- Idea: instead of just the branch target address,
stash the branch target instruction
in the BTB
- Skip IF stage for next instruction
- Effective CPI for branch is zero
- Could stash target instruction for
both taken and not-taken cases to reduce
misprediction delay