kprobes/arm: Fix ldrd/strd emulation
authorViktor Rosendahl <viktor.rosendahl@nokia.com>
Mon, 28 Mar 2011 15:56:05 +0000 (18:56 +0300)
committerNicolas Pitre <nicolas.pitre@linaro.org>
Fri, 29 Apr 2011 03:40:54 +0000 (23:40 -0400)
commitcf3cc1aa9b6d0bf1750143af65829f4368d77492
treecc9027ad2b4a7c7d77afa28049ebf7f97abb14d7
parent6221f222c0ebf1acdf7abcf927178f40e1a65e2a
kprobes/arm: Fix ldrd/strd emulation

Currently emulate_ldrd and emulate_strd don't even have the adjustment
of the PC value, so in case of Rn == PC, it will not update the PC
incorrectly but instead load/store from the wrong address.  Let's add
both the adjustment of the PC value and the check for PC == PC.

Signed-off-by: Viktor Rosendahl <viktor.rosendahl@nokia.com>
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
arch/arm/kernel/kprobes-decode.c