]> git.proxmox.com Git - mirror_qemu.git/commit
target-arm: Use sextract32() in branch decode
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 10 Sep 2013 18:09:32 +0000 (19:09 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 10 Sep 2013 18:09:32 +0000 (19:09 +0100)
commit534df156090539854c2ac819dcdb096d01dab5c1
tree73c5847f3ee8b82203d3f327f81112d2efd54eb2
parentf5f6d38b7458b8a1a46a750ac131ca8a2d45d946
target-arm: Use sextract32() in branch decode

In the decode of ARM B and BL insns, swap the order of the
"append 2 implicit zeros to imm24" and the sign extend, and
use the new sextract32() utility function to do the latter.
This avoids a direct dependency on the undefined C behaviour
of shifting into the sign bit of an integer.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Message-id: 1378391908-22137-2-git-send-email-peter.maydell@linaro.org
target-arm/translate.c