mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-24 00:18:36 -07:00
accel/tcg: Pass last not end to page_set_flags
Pass the address of the last byte to be changed, rather than the first address past the last byte. This avoids overflow when the last page of the address space is involved. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1528 Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
2f7828b572
commit
49840a4a09
6 changed files with 27 additions and 28 deletions
|
|
@ -276,7 +276,7 @@ typedef int (*walk_memory_regions_fn)(void *, target_ulong,
|
|||
int walk_memory_regions(void *, walk_memory_regions_fn);
|
||||
|
||||
int page_get_flags(target_ulong address);
|
||||
void page_set_flags(target_ulong start, target_ulong end, int flags);
|
||||
void page_set_flags(target_ulong start, target_ulong last, int flags);
|
||||
void page_reset_target_data(target_ulong start, target_ulong end);
|
||||
int page_check_range(target_ulong start, target_ulong len, int flags);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue