target-m68k: add addressing modes to not

Backports commit ea4f2a844132c81f1e6b51fed7019686ce4e3bc5 from qemu
This commit is contained in:
Laurent Vivier 2018-02-28 01:03:31 -05:00 committed by Lioncash
parent 549e31cc72
commit bc52777b00
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -1703,11 +1703,17 @@ DISAS_INSN(move_to_ccr)
DISAS_INSN(not) DISAS_INSN(not)
{ {
TCGContext *tcg_ctx = s->uc->tcg_ctx; TCGContext *tcg_ctx = s->uc->tcg_ctx;
TCGv reg; TCGv src1;
TCGv dest;
TCGv addr;
int opsize;
reg = DREG(insn, 0); opsize = insn_opsize(insn);
tcg_gen_not_i32(tcg_ctx, reg, reg); SRC_EA(env, src1, opsize, 1, &addr);
gen_logic_cc(s, reg, OS_LONG); 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) DISAS_INSN(swap)