tlb_flush() fix
PATCH 1/1 tlb_flush() fix
This patch removes the unused param of tlb_flush() function.
cpu-exec.c +1 -1
@@ -123,7 +123,7 @@ static TranslationBlock *tb_find_slow(target_ulong pc, tb =tb_alloc (pc);if (!tb) {/* flush must be done */ -tb_flush (env); +tb_flush ();/* cannot fail at this point */ tb =tb_alloc (pc);/* don't forget to invalidate previous TB info */
exec-all.h +1 -1
@@ -233,7 +233,7 @@ static inline unsigned int tb_phys_hash_func(unsigned long pc) }TranslationBlock *tb_alloc (target_ulong pc); -void tb_flush (CPUState *env); +void tb_flush (void );void tb_link_phys (TranslationBlock *tb,target_ulong phys_pc,target_ulong phys_page2);
exec.c +4 -4
@@ -335,7 +335,7 @@ static void page_flush_tb(void)/* flush all the translation blocks */ /* XXX: tb_flush is currently not thread safe */ -void tb_flush (CPUState *env1) +void tb_flush (void ) {CPUState *env;#if defined(DEBUG_FLUSH )
@@ -613,7 +613,7 @@ static void tb_gen_code(CPUState *env, tb =tb_alloc (pc);if (!tb) {/* flush must be done */ -tb_flush (env); +tb_flush ();/* cannot fail at this point */ tb =tb_alloc (pc); }
@@ -1077,7 +1077,7 @@ int cpu_watchpoint_insert(CPUState *env, target_ulong addr)/* FIXME: This flush is needed because of the hack to make memory ops terminate the TB. It can be removed once the proper IO trap and re-execute bits are in. */ -tb_flush (env); +tb_flush ();return i; }
@@ -1151,7 +1151,7 @@ void cpu_single_step(CPUState *env, int enabled) env->singlestep_enabled = enabled;/* must flush all the translated code to avoid inconsistancies */ /* XXX: only flush what is necessary */ - tb_flush(env); + tb_flush(); }#endif }
gdbstub.c +3 -3
@@ -1006,7 +1006,7 @@ static int gdb_handle_packet(GDBState *s, CPUState *env, const char *line_buf)return RS_IDLE ; } -extern void tb_flush (CPUState *env); +extern void tb_flush (void );#ifndef CONFIG_USER_ONLY static void gdb_vm_stopped (void *opaque,int reason)
@@ -1030,7 +1030,7 @@ static void gdb_vm_stopped(void *opaque, int reason) s->env->watchpoint_hit =0 ;return ; } -tb_flush (s->env); +tb_flush (); ret =SIGTRAP ; }else if (reason ==EXCP_INTERRUPT ) { ret =SIGINT ;
@@ -1198,7 +1198,7 @@ gdb_handlesig (CPUState *env, int sig)/* disable single step if it was enabled */ cpu_single_step (env,0 ); -tb_flush (env); +tb_flush ();if (sig !=0 ) {
target-arm/helper.c +2 -2
@@ -680,7 +680,7 @@ void helper_set_cp15(CPUState *env, uint32_t insn, uint32_t val) goto bad_reg; env->cp15.c1_coproc = val;/* ??? Is this safe when called from within a TB? */ -tb_flush (env); +tb_flush ();break ;default : goto bad_reg;
@@ -841,7 +841,7 @@ void helper_set_cp15(CPUState *env, uint32_t insn, uint32_t val)if (op2 ==0 && crm ==1 ) {if (env->cp15.c15_cpar != (val &0x3fff )) {/* Changes cp0 to cp13 behavior, so needs a TB flush. */ -tb_flush (env); +tb_flush (); env->cp15.c15_cpar = val &0x3fff ; }break ;
target-i386/translate.c +1 -1
@@ -5520,7 +5520,7 @@ static target_ulong disas_insn(DisasContext *s, target_ulong pc_start)gen_debug (s, pc_start - s->cs_base);#else /* start debug */ -tb_flush (cpu_single_env); +tb_flush ();cpu_set_log (CPU_LOG_INT |CPU_LOG_TB_IN_ASM );#endif break ;