mirror of
https://github.com/qemu/qemu.git
synced 2024-12-12 21:23:36 +08:00
target-m68k: fix EXG instruction
opcodes of "EXG Ax,Ay" and "EXG Dx,Dy" have been swapped Signed-off-by: Laurent Vivier <laurent@vivier.eu> Reviewed-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
00227fefd2
commit
c090c97d92
@ -2198,13 +2198,13 @@ static void do_exg(TCGv reg1, TCGv reg2)
|
||||
tcg_temp_free(temp);
|
||||
}
|
||||
|
||||
DISAS_INSN(exg_aa)
|
||||
DISAS_INSN(exg_dd)
|
||||
{
|
||||
/* exchange Dx and Dy */
|
||||
do_exg(DREG(insn, 9), DREG(insn, 0));
|
||||
}
|
||||
|
||||
DISAS_INSN(exg_dd)
|
||||
DISAS_INSN(exg_aa)
|
||||
{
|
||||
/* exchange Ax and Ay */
|
||||
do_exg(AREG(insn, 9), AREG(insn, 0));
|
||||
|
Loading…
Reference in New Issue
Block a user