Software Tuning, Performance Optimization & Platform Monitoring
Discussion regarding monitoring and software tuning methodologies, Performance Monitoring Unit (PMU) of Intel microprocessors, and platform updating.

How many pipeline stages detect branch mispredictions?


Are there three stages in the pipeline which can detect branch mispredictions?

  1. Branch Target Buffer (raising BPU CLEAR signal)
  2. Branch Address Calculator (raising BA CLEAR signal)
  3. Branch Execution Unit (flushing entire pipeline)

I am not sure about whether the BTB can actually detect branch mispredictions. Could somebody please confirm this? What is the difference between BPU CLEAR and BA CLEAR? Do they get raised from different parts of the pipeline?

0 Kudos
0 Replies