target-arm: Ignore attempts to set invalid modes in CPSR
commit37064a8b6f9075e18b05bfc6d5264b138a224713
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 5 Jan 2012 15:49:06 +0000 (5 15:49 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 5 Jan 2012 15:49:06 +0000 (5 15:49 +0000)
tree797c55e04c3ae3edb29daa89b8559327f1d32852
parent1b9e01c1109189951a5f28b90ca037e12d61511c
target-arm: Ignore attempts to set invalid modes in CPSR

Ignore attempts to set the CPSR mode field to an invalid value.
This is UNPREDICTABLE, but we should not cpu_abort() for things
a malicious guest (or a confused user on the gdbstub interface)
can provoke.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/helper.c