mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-10 22:05:34 +00:00
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:
parent
72c8e4d264
commit
b5c9645a0f
|
@ -1611,7 +1611,7 @@ static void invalidate_and_set_dirty(struct uc_struct *uc, hwaddr addr,
|
||||||
hwaddr length)
|
hwaddr length)
|
||||||
{
|
{
|
||||||
if (cpu_physical_memory_range_includes_clean(uc, addr, 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1135,11 +1135,10 @@ TranslationBlock *tb_gen_code(CPUState *cpu,
|
||||||
* access: the virtual CPU will exit the current TB if code is modified inside
|
* access: the virtual CPU will exit the current TB if code is modified inside
|
||||||
* this TB.
|
* this TB.
|
||||||
*/
|
*/
|
||||||
void tb_invalidate_phys_range(struct uc_struct *uc, tb_page_addr_t start, tb_page_addr_t end,
|
void tb_invalidate_phys_range(struct uc_struct *uc, tb_page_addr_t start, tb_page_addr_t end)
|
||||||
int is_cpu_write_access)
|
|
||||||
{
|
{
|
||||||
while (start < 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_MASK;
|
||||||
start += TARGET_PAGE_SIZE;
|
start += TARGET_PAGE_SIZE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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_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,
|
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);
|
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_invalidate_phys_range(struct uc_struct *uc, tb_page_addr_t start, tb_page_addr_t end);
|
||||||
int is_cpu_write_access);
|
|
||||||
void tb_cleanup(struct uc_struct *uc);
|
void tb_cleanup(struct uc_struct *uc);
|
||||||
|
|
||||||
#ifdef CONFIG_USER_ONLY
|
#ifdef CONFIG_USER_ONLY
|
||||||
|
|
Loading…
Reference in a new issue