From 69687e1824f62038a16686191dac5cf12aa81f0e Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Thu, 1 Mar 2018 08:57:40 -0500 Subject: [PATCH] target-m68k: fix EXG instruction opcodes of "EXG Ax,Ay" and "EXG Dx,Dy" have been swapped Backports commit c090c97d925ce751d8834d5c5a404952598f67c0 from qemu --- qemu/target-m68k/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qemu/target-m68k/translate.c b/qemu/target-m68k/translate.c index bc4fa1d9..92b5e313 100644 --- a/qemu/target-m68k/translate.c +++ b/qemu/target-m68k/translate.c @@ -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;