Skip to main content
RIG
Associate III
September 4, 2021
Question

About branch prediction of STM32H7(Cortex-M7)

  • September 4, 2021
  • 6 replies
  • 2588 views

I don't know so please let me know.

I would like to use Cortex-M7 branch prediction. 

Is it necessary to set registers in particular?

This topic has been closed for replies.

6 replies

waclawek.jan
Super User
September 4, 2021

AFAIK details are not public.

I would be surprised if this would go beyond remembering result of the last or last few branches and assuming they will go the same way again. This is a good strategy e.g. for basic for loops.

JW

RIG
RIGAuthor
Associate III
September 4, 2021

Thank you for your reply this time as well.

What is AFAIK?

waclawek.jan
Super User
September 4, 2021

As Far As I Know

Tesla DeLorean
Guru
September 4, 2021
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
RIG
RIGAuthor
Associate III
September 6, 2021

Thank you for your answer.

>if it mis-judges the flow there's only a single cycle cost rather than a full pipeline cost.

->Do you recognize that even if you misjudgment the flow, the branch processing time will be very short because it will be a single cycle cost?

Thank you for the document.

Please tell me how to set the Axial Control Register (ACTLR) to use branch prediction properly.

Piranha
Principal III
September 25, 2021