translate-all: remove unnecessary argument to tb_invalidate_phys_range

The is_cpu_write_access argument is always 0, remove it.

Backports commit 358653391b0c0beaa0e3f9e28304e1918cd223b3 from qemu
This commit is contained in:
Paolo Bonzini 2018-02-13 09:04:27 -05:00 committed by Lioncash
parent 72c8e4d264
commit b5c9645a0f
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7
3 changed files with 4 additions and 6 deletions

View file

@ -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);
}
}

View file

@ -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;
}

View file

@ -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