mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
target-m68k: fix muluw/mulsw
"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 <laurent@vivier.eu> Reviewed-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
5436c29d78
commit
4a18cd44f3
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue