diff options
author | Andreas Färber <afaerber@suse.de> | 2013-09-03 10:51:26 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2014-03-13 19:20:48 +0100 |
commit | baea4fae7b6d75ce0d1aeb2be0a223c7be8f4161 (patch) | |
tree | c05e698d3905a9d7c920c31024e1e86d5597b166 /translate-all.c | |
parent | 0ea8cb8895a9f9adea89fb202984dcd9e890e504 (diff) | |
download | qemu-baea4fae7b6d75ce0d1aeb2be0a223c7be8f4161.zip qemu-baea4fae7b6d75ce0d1aeb2be0a223c7be8f4161.tar.gz qemu-baea4fae7b6d75ce0d1aeb2be0a223c7be8f4161.tar.bz2 |
cputlb: Change tlb_unprotect_code_phys() argument to CPUState
Note that the argument is unused.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'translate-all.c')
-rw-r--r-- | translate-all.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/translate-all.c b/translate-all.c index 0aa4f76..e35fcbe 100644 --- a/translate-all.c +++ b/translate-all.c @@ -1007,7 +1007,7 @@ void tb_invalidate_phys_page_range(tb_page_addr_t start, tb_page_addr_t end, { TranslationBlock *tb, *tb_next, *saved_tb; CPUState *cpu = current_cpu; -#if defined(TARGET_HAS_PRECISE_SMC) || !defined(CONFIG_USER_ONLY) +#if defined(TARGET_HAS_PRECISE_SMC) CPUArchState *env = NULL; #endif tb_page_addr_t tb_start, tb_end; @@ -1032,7 +1032,7 @@ void tb_invalidate_phys_page_range(tb_page_addr_t start, tb_page_addr_t end, /* build code bitmap */ build_page_bitmap(p); } -#if defined(TARGET_HAS_PRECISE_SMC) || !defined(CONFIG_USER_ONLY) +#if defined(TARGET_HAS_PRECISE_SMC) if (cpu != NULL) { env = cpu->env_ptr; } @@ -1102,7 +1102,7 @@ void tb_invalidate_phys_page_range(tb_page_addr_t start, tb_page_addr_t end, if (!p->first_tb) { invalidate_page_bitmap(p); if (is_cpu_write_access) { - tlb_unprotect_code_phys(env, start, cpu->mem_io_vaddr); + tlb_unprotect_code_phys(cpu, start, cpu->mem_io_vaddr); } } #endif |