ARM: kprobes: Fix emulation of SXTB16, SXTB, SXTH, UXTB16, UXTB and UXTH instructions
authorJon Medhurst <tixy@yxit.co.uk>
Tue, 12 Apr 2011 06:45:24 +0000 (07:45 +0100)
committerNicolas Pitre <nicolas.pitre@linaro.org>
Fri, 29 Apr 2011 03:40:58 +0000 (23:40 -0400)
commit8dd7cfbed83c74b1fb991fae264944e041e22e62
tree97eac596f52e2244a2fc96020ef666d01504e637
parent780b5c1162286cc75ef2dcc0f14215d9f9f06230
ARM: kprobes: Fix emulation of SXTB16, SXTB, SXTH, UXTB16, UXTB and UXTH instructions

These sign extension instructions are encoded as extend-and-add
instructions where the register to add is specified as r15. The decoding
routines weren't checking for this and were using the incorrect
emulation code, giving incorrect results.

Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
arch/arm/kernel/kprobes-decode.c