From 12cb26ab6cd84b50e845f4353a1337781b864b4e Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Tue, 13 Feb 2018 22:39:04 -0500 Subject: [PATCH] m68k: is_mem is useless Remove is_mem as it is never tested anymore since: commit bfa50bc2638d877cf2900712b7503be22e8811cb Backports commit 805167adcb900fa7b2b114d639c418f5313d0b42 from qemu --- qemu/target-m68k/translate.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/qemu/target-m68k/translate.c b/qemu/target-m68k/translate.c index dc4c407b..358708f7 100644 --- a/qemu/target-m68k/translate.c +++ b/qemu/target-m68k/translate.c @@ -115,7 +115,6 @@ typedef struct DisasContext { uint32_t fpcr; struct TranslationBlock *tb; int singlestep_enabled; - int is_mem; TCGv_i64 mactmp; int done_mac; @@ -164,7 +163,6 @@ static inline TCGv gen_load(DisasContext * s, int opsize, TCGv addr, int sign) TCGContext *tcg_ctx = s->uc->tcg_ctx; TCGv tmp; int index = IS_USER(s); - s->is_mem = 1; tmp = tcg_temp_new_i32(tcg_ctx); switch(opsize) { case OS_BYTE: @@ -194,7 +192,6 @@ static inline TCGv_i64 gen_load64(DisasContext * s, TCGv addr) TCGContext *tcg_ctx = s->uc->tcg_ctx; TCGv_i64 tmp; int index = IS_USER(s); - s->is_mem = 1; tmp = tcg_temp_new_i64(tcg_ctx); tcg_gen_qemu_ldf64(s->uc, tmp, addr, index); return tmp; @@ -204,7 +201,6 @@ static inline TCGv_i64 gen_load64(DisasContext * s, TCGv addr) static inline void gen_store(DisasContext *s, int opsize, TCGv addr, TCGv val) { int index = IS_USER(s); - s->is_mem = 1; switch(opsize) { case OS_BYTE: tcg_gen_qemu_st8(s->uc, val, addr, index); @@ -224,7 +220,6 @@ static inline void gen_store(DisasContext *s, int opsize, TCGv addr, TCGv val) static inline void gen_store64(DisasContext *s, TCGv addr, TCGv_i64 val) { int index = IS_USER(s); - s->is_mem = 1; tcg_gen_qemu_stf64(s->uc, val, addr, index); } @@ -2291,7 +2286,6 @@ DISAS_INSN(fpu) mask = 0x80; for (i = 0; i < 8; i++) { if (ext & mask) { - s->is_mem = 1; dest = FREG(i, 0); if (ext & (1 << 13)) { /* store */ @@ -3090,7 +3084,6 @@ gen_intermediate_code_internal(M68kCPU *cpu, TranslationBlock *tb, dc->singlestep_enabled = cs->singlestep_enabled; dc->fpcr = env->fpcr; dc->user = (env->sr & SR_S) == 0; - dc->is_mem = 0; dc->done_mac = 0; lj = -1; num_insns = 0;