From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9pZs-0001os-2P for qemu-devel@nongnu.org; Thu, 24 Nov 2016 03:40:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9pZo-0005vn-68 for qemu-devel@nongnu.org; Thu, 24 Nov 2016 03:40:20 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:56273) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c9pZn-0005uW-RZ for qemu-devel@nongnu.org; Thu, 24 Nov 2016 03:40:16 -0500 From: Laurent Vivier Date: Thu, 24 Nov 2016 09:40:02 +0100 Message-Id: <1479976802-21696-1-git-send-email-laurent@vivier.eu> Subject: [Qemu-devel] [PATCH for-2.8] target-m68k: fix muluw/mulsw List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Richard Henderson , Laurent Vivier "The multiplier and multiplicand are both word operands, and the result is a long-word operand." So compute flags on a long-word result, not on a word result. Signed-off-by: Laurent Vivier --- 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 d2d6816..d6ed883 100644 --- a/target-m68k/translate.c +++ b/target-m68k/translate.c @@ -1186,7 +1186,7 @@ DISAS_INSN(mulw) SRC_EA(env, src, OS_WORD, sign, NULL); tcg_gen_mul_i32(tmp, tmp, src); tcg_gen_mov_i32(reg, tmp); - gen_logic_cc(s, tmp, OS_WORD); + gen_logic_cc(s, tmp, OS_LONG); } DISAS_INSN(divw) -- 2.7.4