ARM: kprobes: Fix emulation of MRS instruction
authorJon Medhurst <tixy@yxit.co.uk>
Thu, 7 Apr 2011 12:25:16 +0000 (13:25 +0100)
committerNicolas Pitre <nicolas.pitre@linaro.org>
Fri, 29 Apr 2011 03:40:55 +0000 (23:40 -0400)
commitc412aba2a1243192a4d53736805a96bdda915608
treef04010b8c82fcc4ef9934144dd8eb8cbf6f8ad1c
parent51468ea91efad9c7e6dbae43cd8bdc423ec61709
ARM: kprobes: Fix emulation of MRS instruction

The MRS instruction should set mode and interrupt bits in the read value
so it is simpler to use a new simulation routine (simulate_mrs) rather
than some modified emulation.

prep_emulate_rd12 is now unused and removed.

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