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/translate.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/translate.c')
-rw-r--r-- | target-m68k/translate.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/target-m68k/translate.c b/target-m68k/translate.c index 650c141018..681f3a8941 100644 --- a/target-m68k/translate.c +++ b/target-m68k/translate.c @@ -3025,7 +3025,7 @@ void gen_intermediate_code(CPUM68KState *env, TranslationBlock *tb) do { pc_offset = dc->pc - pc_start; gen_throws_exception = NULL; - tcg_gen_insn_start(dc->pc); + tcg_gen_insn_start(dc->pc, dc->cc_op); num_insns++; if (unlikely(cpu_breakpoint_test(cs, dc->pc, BP_ANY))) { @@ -3119,5 +3119,9 @@ void m68k_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf, void restore_state_to_opc(CPUM68KState *env, TranslationBlock *tb, target_ulong *data) { + int cc_op = data[1]; env->pc = data[0]; + if (cc_op != CC_OP_DYNAMIC) { + env->cc_op = cc_op; + } } |