Software Tuning, Performance Optimization & Platform Monitoring
Discussion around monitoring and software tuning methodologies, Performance Monitoring Unit (PMU) of Intel microprocessors, and platform monitoring
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

How many pipeline stages detect branch mispredictions?

T_C
Beginner
138 Views

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
Reply