mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-06-06 01:28:22 +00:00
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:
parent
d46e52d9d0
commit
69687e1824
|
@ -2261,7 +2261,7 @@ static void do_exg(TCGContext *tcg_ctx, TCGv reg1, TCGv reg2)
|
||||||
tcg_temp_free(tcg_ctx, temp);
|
tcg_temp_free(tcg_ctx, temp);
|
||||||
}
|
}
|
||||||
|
|
||||||
DISAS_INSN(exg_aa)
|
DISAS_INSN(exg_dd)
|
||||||
{
|
{
|
||||||
TCGContext *tcg_ctx = s->uc->tcg_ctx;
|
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));
|
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;
|
TCGContext *tcg_ctx = s->uc->tcg_ctx;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue