This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to disable the branch prediction on armv8

Hello,

I am working with ARMV8 Cortex A72 architecture,
i want to know can i turn off branch prediction?
and how can i do it?

best regards,

Parents
  • I guess it can't (ARM 100095_0003_06_en):
    6.5.5  Enabling program flow prediction
     
    Program flow prediction is always enabled and no programming is required to take advantage of
    program flow prediction.
    When reset, the processor:
    • Invalidates the BTB.
    • Resets the GHB and indirect predictor to a known state.
    No software intervention is required to prepare the prediction logic before enabling program flow
    prediction.

Reply
  • I guess it can't (ARM 100095_0003_06_en):
    6.5.5  Enabling program flow prediction
     
    Program flow prediction is always enabled and no programming is required to take advantage of
    program flow prediction.
    When reset, the processor:
    • Invalidates the BTB.
    • Resets the GHB and indirect predictor to a known state.
    No software intervention is required to prepare the prediction logic before enabling program flow
    prediction.

Children
No data