mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-23 04:01:07 +00:00
target-m68k: add addressing modes to not
Backports commit ea4f2a844132c81f1e6b51fed7019686ce4e3bc5 from qemu
This commit is contained in:
parent
549e31cc72
commit
bc52777b00
|
@ -1703,11 +1703,17 @@ DISAS_INSN(move_to_ccr)
|
|||
DISAS_INSN(not)
|
||||
{
|
||||
TCGContext *tcg_ctx = s->uc->tcg_ctx;
|
||||
TCGv reg;
|
||||
TCGv src1;
|
||||
TCGv dest;
|
||||
TCGv addr;
|
||||
int opsize;
|
||||
|
||||
reg = DREG(insn, 0);
|
||||
tcg_gen_not_i32(tcg_ctx, reg, reg);
|
||||
gen_logic_cc(s, reg, OS_LONG);
|
||||
opsize = insn_opsize(insn);
|
||||
SRC_EA(env, src1, opsize, 1, &addr);
|
||||
dest = tcg_temp_new(tcg_ctx);
|
||||
tcg_gen_not_i32(tcg_ctx, dest, src1);
|
||||
DEST_EA(env, insn, opsize, dest, &addr);
|
||||
gen_logic_cc(s, dest, opsize);
|
||||
}
|
||||
|
||||
DISAS_INSN(swap)
|
||||
|
|
Loading…
Reference in a new issue