diff --git a/qemu/exec.c b/qemu/exec.c index 1d5fc87d..6fbeb8b0 100644 --- a/qemu/exec.c +++ b/qemu/exec.c @@ -1611,7 +1611,7 @@ static void invalidate_and_set_dirty(struct uc_struct *uc, hwaddr addr, hwaddr length) { if (cpu_physical_memory_range_includes_clean(uc, addr, length)) { - tb_invalidate_phys_range(uc, addr, addr + length, 0); + tb_invalidate_phys_range(uc, addr, addr + length); } } diff --git a/qemu/translate-all.c b/qemu/translate-all.c index bf4e4cf2..c9a4860e 100644 --- a/qemu/translate-all.c +++ b/qemu/translate-all.c @@ -1135,11 +1135,10 @@ TranslationBlock *tb_gen_code(CPUState *cpu, * access: the virtual CPU will exit the current TB if code is modified inside * this TB. */ -void tb_invalidate_phys_range(struct uc_struct *uc, tb_page_addr_t start, tb_page_addr_t end, - int is_cpu_write_access) +void tb_invalidate_phys_range(struct uc_struct *uc, tb_page_addr_t start, tb_page_addr_t end) { while (start < end) { - tb_invalidate_phys_page_range(uc, start, end, is_cpu_write_access); + tb_invalidate_phys_page_range(uc, start, end, 0); start &= TARGET_PAGE_MASK; start += TARGET_PAGE_SIZE; } diff --git a/qemu/translate-all.h b/qemu/translate-all.h index 90e245cb..8d5a48ed 100644 --- a/qemu/translate-all.h +++ b/qemu/translate-all.h @@ -24,8 +24,7 @@ void tb_check_watchpoint(CPUState *cpu); void tb_invalidate_phys_page_fast(struct uc_struct* uc, tb_page_addr_t start, int len); void tb_invalidate_phys_page_range(struct uc_struct *uc, tb_page_addr_t start, tb_page_addr_t end, int is_cpu_write_access); -void tb_invalidate_phys_range(struct uc_struct *uc, tb_page_addr_t start, tb_page_addr_t end, - int is_cpu_write_access); +void tb_invalidate_phys_range(struct uc_struct *uc, tb_page_addr_t start, tb_page_addr_t end); void tb_cleanup(struct uc_struct *uc); #ifdef CONFIG_USER_ONLY