cputlb: Remove tb_invalidate_phys_page_range is_cpu_write_access
All callers pass false to this argument. Remove it and pass the constant on to tb_invalidate_phys_page_range__locked. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
b56668bbe1
commit
ce9f5e2792
@ -1983,8 +1983,7 @@ tb_invalidate_phys_page_range__locked(struct page_collection *pages,
|
|||||||
*
|
*
|
||||||
* Called with mmap_lock held for user-mode emulation
|
* Called with mmap_lock held for user-mode emulation
|
||||||
*/
|
*/
|
||||||
void tb_invalidate_phys_page_range(tb_page_addr_t start, tb_page_addr_t end,
|
void tb_invalidate_phys_page_range(tb_page_addr_t start, tb_page_addr_t end)
|
||||||
int is_cpu_write_access)
|
|
||||||
{
|
{
|
||||||
struct page_collection *pages;
|
struct page_collection *pages;
|
||||||
PageDesc *p;
|
PageDesc *p;
|
||||||
@ -1996,8 +1995,7 @@ void tb_invalidate_phys_page_range(tb_page_addr_t start, tb_page_addr_t end,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
pages = page_collection_lock(start, end);
|
pages = page_collection_lock(start, end);
|
||||||
tb_invalidate_phys_page_range__locked(pages, p, start, end,
|
tb_invalidate_phys_page_range__locked(pages, p, start, end, 0);
|
||||||
is_cpu_write_access);
|
|
||||||
page_collection_unlock(pages);
|
page_collection_unlock(pages);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,8 +28,7 @@ struct page_collection *page_collection_lock(tb_page_addr_t start,
|
|||||||
void page_collection_unlock(struct page_collection *set);
|
void page_collection_unlock(struct page_collection *set);
|
||||||
void tb_invalidate_phys_page_fast(struct page_collection *pages,
|
void tb_invalidate_phys_page_fast(struct page_collection *pages,
|
||||||
tb_page_addr_t start, int len);
|
tb_page_addr_t start, int len);
|
||||||
void tb_invalidate_phys_page_range(tb_page_addr_t start, tb_page_addr_t end,
|
void tb_invalidate_phys_page_range(tb_page_addr_t start, tb_page_addr_t end);
|
||||||
int is_cpu_write_access);
|
|
||||||
void tb_check_watchpoint(CPUState *cpu);
|
void tb_check_watchpoint(CPUState *cpu);
|
||||||
|
|
||||||
#ifdef CONFIG_USER_ONLY
|
#ifdef CONFIG_USER_ONLY
|
||||||
|
4
exec.c
4
exec.c
@ -1012,7 +1012,7 @@ const char *parse_cpu_option(const char *cpu_option)
|
|||||||
void tb_invalidate_phys_addr(target_ulong addr)
|
void tb_invalidate_phys_addr(target_ulong addr)
|
||||||
{
|
{
|
||||||
mmap_lock();
|
mmap_lock();
|
||||||
tb_invalidate_phys_page_range(addr, addr + 1, 0);
|
tb_invalidate_phys_page_range(addr, addr + 1);
|
||||||
mmap_unlock();
|
mmap_unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1039,7 +1039,7 @@ void tb_invalidate_phys_addr(AddressSpace *as, hwaddr addr, MemTxAttrs attrs)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ram_addr = memory_region_get_ram_addr(mr) + addr;
|
ram_addr = memory_region_get_ram_addr(mr) + addr;
|
||||||
tb_invalidate_phys_page_range(ram_addr, ram_addr + 1, 0);
|
tb_invalidate_phys_page_range(ram_addr, ram_addr + 1);
|
||||||
rcu_read_unlock();
|
rcu_read_unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user