diff options
author | Laurent Vivier <laurent@vivier.eu> | 2015-08-09 01:44:24 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2016-10-25 20:54:47 +0200 |
commit | 20a8856eba0980fbe9d2b8ed2b33ecdb9c9fe5ad (patch) | |
tree | 50c9473cd54efef8ae9e91bbdf424fc759c11a4d /target-m68k/helper.c | |
parent | f9083519034aaa5ad5cd2c5727bd61c29bf60bc5 (diff) |
target-m68k: remove m68k_cpu_exec_enter() and m68k_cpu_exec_exit()
Update cc_op directly from tcg_gen_insn_start() and
restore_state_to_opc()
Copied from target-i386
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'target-m68k/helper.c')
-rw-r--r-- | target-m68k/helper.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/target-m68k/helper.c b/target-m68k/helper.c index dc55a7a430..92d1deda3c 100644 --- a/target-m68k/helper.c +++ b/target-m68k/helper.c @@ -922,23 +922,3 @@ void HELPER(set_mac_extu)(CPUM68KState *env, uint32_t val, uint32_t acc) res |= (uint64_t)(val & 0xffff0000) << 16; env->macc[acc + 1] = res; } - -void m68k_cpu_exec_enter(CPUState *cs) -{ - M68kCPU *cpu = M68K_CPU(cs); - CPUM68KState *env = &cpu->env; - - env->cc_op = CC_OP_FLAGS; - env->cc_dest = env->sr & 0xf; - env->cc_x = (env->sr >> 4) & 1; -} - -void m68k_cpu_exec_exit(CPUState *cs) -{ - M68kCPU *cpu = M68K_CPU(cs); - CPUM68KState *env = &cpu->env; - - cpu_m68k_flush_flags(env, env->cc_op); - env->cc_op = CC_OP_FLAGS; - env->sr = (env->sr & 0xffe0) | env->cc_dest | (env->cc_x << 4); -} |