aboutsummaryrefslogtreecommitdiff
path: root/target-m68k/translate.c
diff options
context:
space:
mode:
authorLaurent Vivier <laurent@vivier.eu>2016-01-16 23:13:52 +0100
committerLaurent Vivier <laurent@vivier.eu>2016-10-28 10:38:48 +0200
commitea4f2a844132c81f1e6b51fed7019686ce4e3bc5 (patch)
tree3b7ff368f8c311e1ba2a43ff5a635f4a95401542 /target-m68k/translate.c
parenta665a820e5d46b1611f409fbc7a540fe1c6bf5c8 (diff)
downloadqemu-ea4f2a844132c81f1e6b51fed7019686ce4e3bc5.zip
qemu-ea4f2a844132c81f1e6b51fed7019686ce4e3bc5.tar.gz
qemu-ea4f2a844132c81f1e6b51fed7019686ce4e3bc5.tar.bz2
target-m68k: add addressing modes to not
Signed-off-by: Laurent Vivier <laurent@vivier.eu> Reviewed-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-m68k/translate.c')
-rw-r--r--target-m68k/translate.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/target-m68k/translate.c b/target-m68k/translate.c
index fd6631d..031f7eb 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)