From: Jon Medhurst Date: Thu, 7 Jul 2011 07:57:22 +0000 (+0100) Subject: ARM: kprobes: Add common decoding function for LDM and STM X-Git-Tag: v3.1-rc1~258^2^2~2^2~39 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=235a4ce79feb8d5351f9164981bc57d5e29f974b;p=pandora-kernel.git ARM: kprobes: Add common decoding function for LDM and STM The encoding of these instructions is substantially the same for both ARM and Thumb, so we can have common decoding and simulation functions. This patch moves the simulation functions from kprobes-arm.c to kprobes-common.c. It also adds a new simulation function (simulate_ldm1_pc) for the case where we load into PC because this may need to interwork. The instruction decoding is done by a custom function (kprobe_decode_ldmstm) rather than just relying on decoding table entries because we will later be adding optimisation code. Signed-off-by: Jon Medhurst Acked-by: Nicolas Pitre --- Reading git-diff-tree failed