From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9vwg-000548-1S for qemu-devel@nongnu.org; Thu, 24 Nov 2016 10:28:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9vwc-0001LS-Nt for qemu-devel@nongnu.org; Thu, 24 Nov 2016 10:28:18 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:50741) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c9vwc-0001In-D9 for qemu-devel@nongnu.org; Thu, 24 Nov 2016 10:28:14 -0500 From: Laurent Vivier Date: Thu, 24 Nov 2016 16:28:06 +0100 Message-Id: <1480001287-17515-3-git-send-email-laurent@vivier.eu> In-Reply-To: <1480001287-17515-1-git-send-email-laurent@vivier.eu> References: <1480001287-17515-1-git-send-email-laurent@vivier.eu> Subject: [Qemu-devel] [PULL 2/3] target-m68k: Fix cmpa operand size List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Laurent Vivier "The size of the operation can be specified as word or long. Word length source operands are sign-extended to 32 bits for comparison." So comparison is always done using OS_LONG. Signed-off-by: Laurent Vivier Reviewed-by: Richard Henderson --- target-m68k/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-m68k/translate.c b/target-m68k/translate.c index 8e522db..d2d6816 100644 --- a/target-m68k/translate.c +++ b/target-m68k/translate.c @@ -2170,7 +2170,7 @@ DISAS_INSN(cmpa) } SRC_EA(env, src, opsize, 1, NULL); reg = AREG(insn, 9); - gen_update_cc_cmp(s, reg, src, opsize); + gen_update_cc_cmp(s, reg, src, OS_LONG); } DISAS_INSN(eor) -- 2.7.4