Skip to contentSkip to conversation

target-m68k: fix EXG instruction

PATCH In review Laurent Vivier 2 participants 2 messages Nov 23, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target-m68k: fix EXG instruction

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

---
 target-m68k/translate.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
target-m68k/translate.c +2 -2
index 9ad974f..8e522db 100644
@@ -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));
Signature · 1 line
2.7.4