How to turn off branch delay slot ?


This topic contains 1 reply, has 2 voices, and was last updated by  Sean 4 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #31394


    hi,I have encountered a problem about branch delay slot.

     I do not want CPU to excute the instruction in branch delay slot ,and also,code-segment cannot be modified .

    I know one solution is use GCC marco -fno-delayed-branch to forbidden compiler insert other instructions to delay slot but NOP, but such solution need to re-compile code,it’s unacceptable in my project

     Thank you.



    There is not a possibility without re-compiling as the branch delay slots would have been filled during compilation.

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.