mirror of https://gitee.com/openkylin/linux.git
ARM: kprobes: Fix emulation of Data-processing (immediate) instructions
Emulation of instructions like "ADD rd, rn, #<const>" would result in a corrupted value for rd. Signed-off-by: Jon Medhurst <tixy@yxit.co.uk> Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
This commit is contained in:
parent
ad111ce466
commit
896a74e19d
|
@ -1207,7 +1207,7 @@ space_cccc_001x(kprobe_opcode_t insn, struct arch_specific_insn *asi)
|
|||
* *S (bit 20) updates condition codes
|
||||
* ADC/SBC/RSC reads the C flag
|
||||
*/
|
||||
insn &= 0xffff0fff; /* Rd = r0 */
|
||||
insn &= 0xfff00fff; /* Rn = r0 and Rd = r0 */
|
||||
asi->insn[0] = insn;
|
||||
|
||||
if ((insn & 0x0f900000) == 0x03100000) {
|
||||
|
|
Loading…
Reference in New Issue