mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
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 <laurent@vivier.eu> Reviewed-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user