diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2014-04-16 12:29:39 +0100 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2014-07-20 22:05:56 -0500 |
commit | fb039011ff6ec049ee05cb1e99abe86c241c0125 (patch) | |
tree | e70e32bd872e69f539b01ab63525eb6788b2fe8b | |
parent | 5ad12b32352696f8c9c779bda6a900c7b6cb0b4d (diff) | |
download | qemu-fb039011ff6ec049ee05cb1e99abe86c241c0125.zip qemu-fb039011ff6ec049ee05cb1e99abe86c241c0125.tar.gz qemu-fb039011ff6ec049ee05cb1e99abe86c241c0125.tar.bz2 |
target-arm: A64: fix unallocated test of scalar SQXTUN
The test for the U bit was incorrectly inverted in the scalar case of SQXTUN.
This doesn't affect the vector case as the U bit is used to select XTN(2).
Reported-by: Hao Liu <hao.liu@arm.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Claudio Fontana <claudio.fontana@huawei.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-stable@nongnu.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
(cherry picked from commit e44a90c59697cf98e05619fbb6f77a403d347495)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
-rw-r--r-- | target-arm/translate-a64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index 9175e48..a780366 100644 --- a/target-arm/translate-a64.c +++ b/target-arm/translate-a64.c @@ -7455,7 +7455,7 @@ static void disas_simd_scalar_two_reg_misc(DisasContext *s, uint32_t insn) } break; case 0x12: /* SQXTUN */ - if (u) { + if (!u) { unallocated_encoding(s); return; } |