target-m68k: fix EXG instruction

opcodes of "EXG Ax,Ay" and "EXG Dx,Dy" have been swapped

Backports commit c090c97d925ce751d8834d5c5a404952598f67c0 from qemu
This commit is contained in:
Laurent Vivier 2018-03-01 08:57:40 -05:00 committed by Lioncash
parent d46e52d9d0
commit 69687e1824
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -2261,7 +2261,7 @@ static void do_exg(TCGContext *tcg_ctx, TCGv reg1, TCGv reg2)
tcg_temp_free(tcg_ctx, temp);
}
DISAS_INSN(exg_aa)
DISAS_INSN(exg_dd)
{
TCGContext *tcg_ctx = s->uc->tcg_ctx;
@ -2269,7 +2269,7 @@ DISAS_INSN(exg_aa)
do_exg(tcg_ctx, DREG(insn, 9), DREG(insn, 0));
}
DISAS_INSN(exg_dd)
DISAS_INSN(exg_aa)
{
TCGContext *tcg_ctx = s->uc->tcg_ctx;