Skip to content
Commit 8084ea55 authored by Keith Packard's avatar Keith Packard Committed by Carles Cufí
Browse files

boards/arc/qemu_arc: Disable use of branch delay slots



I spent several hours debugging a weird stack pointer corruption bug and
discovered that QEMU appears to mess up register contents when an interrupt
fires during the execution of a branch with a delay slot.

Instead of trying to fix qemu, let's just tell the compiler to not generate
code that uses the branch instructions with delay slots.

Closes: #60071

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent 10b85602
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment