forked from Minki/linux
e5c46fde75
After emulating a misaligned load or store issued in Thumb mode, we have to advance the IT state by hand, or it will get out of sync with the actual instruction stream, which means we'll end up applying the wrong condition code to subsequent instructions. This might corrupt the program state rather catastrophically. So borrow the it_advance() helper from the probing code, and use it on CPSR if the emulated instruction is Thumb. Cc: <stable@vger.kernel.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> |
||
---|---|---|
.. | ||
kprobes | ||
uprobes | ||
decode-arm.c | ||
decode-arm.h | ||
decode-thumb.c | ||
decode-thumb.h | ||
decode.c | ||
decode.h | ||
Makefile |