mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 11:39:53 +00:00
accel/tcg: Use tb_invalidate_phys_page in page_set_flags
We do not require detection of overlapping TBs here, so use the more appropriate function. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
65cd34e8c4
commit
24ace1ac3c
@ -1382,7 +1382,7 @@ void page_set_flags(target_ulong start, target_ulong end, int flags)
|
||||
if (!(p->flags & PAGE_WRITE) &&
|
||||
(flags & PAGE_WRITE) &&
|
||||
p->first_tb) {
|
||||
tb_invalidate_phys_page_unwind(addr, 0);
|
||||
tb_invalidate_phys_page(addr);
|
||||
}
|
||||
if (reset_target_data) {
|
||||
g_free(p->target_data);
|
||||
|
Loading…
Reference in New Issue
Block a user