]> git.proxmox.com Git - mirror_qemu.git/commit - target-arm/translate.c
target-arm: Decode SETEND correctly in Thumb
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 14 Mar 2012 12:26:11 +0000 (12:26 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 15 Mar 2012 17:00:55 +0000 (17:00 +0000)
commitd9e028c1d9c2a8d2ad42f2aeb502b71086a52d4d
treee54746b5f4004930b264fd12cfe1e1b22b1a76c5
parentc98d174c24b915e9908785feb63eb3b5abe33818
target-arm: Decode SETEND correctly in Thumb

Decode the SETEND instruction correctly in Thumb mode,
rather than accidentally treating it like CPS. We don't
support BE8 mode, but this change brings the Thumb mode
in to line with behaviour in ARM mode: 'SETEND BE' is
not supported and will provoke an UNDEF exception, but
'SETEND LE' is correctly handled as a no-op.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reported-by: Daniel Forsgren <daniel.forsgren@enea.com>
Reviewed-by: Laurent Desnogues <laurent.desnogues@gmail.com>
target-arm/translate.c