mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
accel/tcg: Add CPUState argument to page_unprotect
In the next patch, page_unprotect will need to pass the CPUState to tb_invalidate_phys_page_unwind. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
5134cf9b5d
commit
43625e35d9
3 changed files with 7 additions and 5 deletions
|
@ -4260,7 +4260,7 @@ static int wmr_page_unprotect_regions(void *opaque, target_ulong start,
|
|||
size_t step = MAX(TARGET_PAGE_SIZE, qemu_real_host_page_size());
|
||||
|
||||
while (1) {
|
||||
page_unprotect(start, 0);
|
||||
page_unprotect(NULL, start, 0);
|
||||
if (end - start <= step) {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue