accel/tcg: Pass last not end to page_reset_target_data
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 5 Mar 2023 23:03:13 +0000 (02:03 +0300)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 28 Mar 2023 22:23:10 +0000 (15:23 -0700)
commit10310cbd6298def2dafd40069e27df2d25e233c5
treecaab505242fa5768298a5b4aaa2e0424c7af8b0a
parent49840a4a098149067789255bca6894645f411036
accel/tcg: Pass last not end to page_reset_target_data

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.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/user-exec.c
include/exec/cpu-all.h
linux-user/mmap.c