ARM: kprobes: Decode 16-bit Thumb data-processing instructions
authorJon Medhurst <tixy@yxit.co.uk>
Sat, 2 Jul 2011 14:46:05 +0000 (15:46 +0100)
committerTixy <tixy@medhuaa1.miniserver.com>
Wed, 13 Jul 2011 17:32:43 +0000 (17:32 +0000)
commit02d194f64772aee91e7319ca033905b0bafee04c
tree67071bb76ec91b1df072bc8eaa889f8c62cbb5d7
parent7460bce42323df6570c7ba5091cb5201c7af1944
ARM: kprobes: Decode 16-bit Thumb data-processing instructions

These instructions only operate on the low registers R0-R7, therefore
it is possible to emulate them by executing the original instruction
unaltered if we restore and save these registers. This is what
t16_emulate_loregs does.

Some of these instructions don't update the PSR when they execute in an
IT block, so there are two flavours of emulation functions:
t16_emulate_loregs_{noit}rwflags

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