From: Laurent Vivier Date: Wed, 23 Nov 2016 20:45:56 +0000 (+0100) Subject: target-m68k: Fix cmpa operand size X-Git-Tag: v2.8.0-rc2~9^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5436c29d78957a6825a93f0eb79dfab388641017;p=thirdparty%2Fqemu.git target-m68k: Fix cmpa operand size "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 --- diff --git a/target-m68k/translate.c b/target-m68k/translate.c index 8e522db9f39..d2d68163b35 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)