target-arm: Set carry flag correctly for Thumb2 ORNS
commit29501f1b9e6b1ee9d5d4761a452116321be5ae95
authorPeter Maydell <peter.maydell@linaro.org>
Sun, 6 Mar 2011 20:32:09 +0000 (6 20:32 +0000)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 6 Mar 2011 22:30:18 +0000 (6 23:30 +0100)
treef1d3b93695ad4d9fd3298fd7719841fa451ebd01
parentf66a99d7526782495931bb1ef22f0a6c623c0ff0
target-arm: Set carry flag correctly for Thumb2 ORNS

The code for Thumb2 ORNS (or negated and set flags) was trashing
a TCG input register which was needed later for use in calculating
flags, with the effect that the carry flag was always set with
the wrong sense. Fix this by using the TCG orc op instead of
separate not and or ops.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-arm/translate.c