Skip to content

Commit

Permalink
translate-all: Change tb_flush_jmp_cache() argument to CPUState
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Färber <afaerber@suse.de>
  • Loading branch information
afaerber committed Mar 13, 2014
1 parent 648f034 commit 611d4f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cputlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void tlb_flush_page(CPUArchState *env, target_ulong addr)
tlb_flush_entry(&env->tlb_table[mmu_idx][i], addr);
}

tb_flush_jmp_cache(env, addr);
tb_flush_jmp_cache(cpu, addr);
}

/* update the TLBs so that writes to code in the virtual page 'addr'
Expand Down
2 changes: 1 addition & 1 deletion include/exec/cputlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void tlb_set_dirty(CPUArchState *env, target_ulong vaddr);
extern int tlb_flush_count;

/* exec.c */
void tb_flush_jmp_cache(CPUArchState *env, target_ulong addr);
void tb_flush_jmp_cache(CPUState *cpu, target_ulong addr);

MemoryRegionSection *
address_space_translate_for_iotlb(AddressSpace *as, hwaddr addr, hwaddr *xlat,
Expand Down
3 changes: 1 addition & 2 deletions translate-all.c
Original file line number Diff line number Diff line change
Expand Up @@ -1479,9 +1479,8 @@ void cpu_io_recompile(CPUState *cpu, uintptr_t retaddr)
cpu_resume_from_signal(env, NULL);
}

void tb_flush_jmp_cache(CPUArchState *env, target_ulong addr)
void tb_flush_jmp_cache(CPUState *cpu, target_ulong addr)
{
CPUState *cpu = ENV_GET_CPU(env);
unsigned int i;

/* Discard jump cache entries for any tb which might potentially
Expand Down

0 comments on commit 611d4f9

Please sign in to comment.