2021-09-03 07:20 PM
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?
2021-09-04 01:16 AM
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
2021-09-04 02:01 AM
Thank you for your reply this time as well.
What is AFAIK?
2021-09-04 05:52 AM
As Far As I Know
2021-09-04 08:10 AM
One might surmise that it prefetches from potential branch targets, and pipelines speculative execution, so that if it mis-judges the flow there's only a single cycle cost rather than a full pipeline cost.
2021-09-05 06:05 PM
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.
2021-09-25 04:29 PM
https://developer.arm.com/documentation/ddi0489/b/system-control/register-summary
Branch prediction is enabled by default and you don't have to do anything.
P.S. How can "Auxiliary" be read as "Axial"?