From ea4f2a844132c81f1e6b51fed7019686ce4e3bc5 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Sat, 16 Jan 2016 23:13:52 +0100 Subject: [PATCH] target-m68k: add addressing modes to not Signed-off-by: Laurent Vivier Reviewed-by: Richard Henderson --- target-m68k/translate.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/target-m68k/translate.c b/target-m68k/translate.c index fd6631d43f..031f7eb465 100644 --- a/target-m68k/translate.c +++ b/target-m68k/translate.c @@ -1673,11 +1673,17 @@ DISAS_INSN(move_to_ccr) DISAS_INSN(not) { - TCGv reg; + TCGv src1; + TCGv dest; + TCGv addr; + int opsize; - reg = DREG(insn, 0); - tcg_gen_not_i32(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_gen_not_i32(dest, src1); + DEST_EA(env, insn, opsize, dest, &addr); + gen_logic_cc(s, dest, opsize); } DISAS_INSN(swap) -- GitLab