accel/tcg: Adjust probe_access call to page_check_range
commit7a1bfee682d8474340ec0fced19b9f0faef9f568
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 8 May 2020 15:43:44 +0000 (8 08:43 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 11 May 2020 10:14:02 +0000 (11 11:14 +0100)
tree09b3dab65a92f7b9836b98cf498b96f85b9a426e
parent857129b34190a4c2e782006dc255352a6cd3934b
accel/tcg: Adjust probe_access call to page_check_range

We have validated that addr+size does not cross a page boundary.
Therefore we need to validate exactly one page.  We can achieve
that passing any value 1 <= x <= size to page_check_range.

Passing 1 will simplify the next patch.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200508154359.7494-5-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
accel/tcg/user-exec.c