OSDN Git Service

accel/tcg: Pass last not end to PAGE_FOR_EACH_TB
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 6 Mar 2023 00:20:46 +0000 (03:20 +0300)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 28 Mar 2023 22:23:10 +0000 (15:23 -0700)
commitf7e2add5fd29ab067ab39c3d31a911ffcf1f7b17
tree1d6db240e5bb345e9ddb071bd493c252a82368bf
parent10310cbd6298def2dafd40069e27df2d25e233c5
accel/tcg: Pass last not end to PAGE_FOR_EACH_TB

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/tb-maint.c