From: Alex Bennée Date: Wed, 16 Apr 2014 11:29:39 +0000 (+0100) Subject: target-arm: A64: fix unallocated test of scalar SQXTUN X-Git-Tag: qemu-xen-4.5.0-rc1^2~95 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=fb039011ff6ec049ee05cb1e99abe86c241c0125;p=qemu-upstream-4.5-testing.git 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 Signed-off-by: Alex Bennée Reviewed-by: Claudio Fontana Reviewed-by: Peter Maydell Cc: qemu-stable@nongnu.org Signed-off-by: Peter Maydell (cherry picked from commit e44a90c59697cf98e05619fbb6f77a403d347495) Signed-off-by: Michael Roth --- diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index 9175e4879..a78036661 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; }