OSDN Git Service

accel/tcg: Pass last not end to tb_invalidate_phys_range
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 6 Mar 2023 01:30:11 +0000 (04:30 +0300)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 28 Mar 2023 22:23:10 +0000 (15:23 -0700)
commite506ad6a05c806bbef460a7d014a184ff8d707a6
treeb4361a63b5f78973093f87ec79add51a44f00d9e
parent73f96d51ff23592741ef75322cb2dda37b38248f
accel/tcg: Pass last not end to tb_invalidate_phys_range

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
accel/tcg/translate-all.c
accel/tcg/user-exec.c
include/exec/exec-all.h
softmmu/physmem.c