linux-user: Use guest_range_valid in access_ok
commit114556c533acdaf4c2cdada245890572985b2912
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 12 Feb 2021 18:48:45 +0000 (12 10:48 -0800)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 16 Feb 2021 11:04:53 +0000 (16 11:04 +0000)
tree0befaaccf7e9d6f73a58186de0296e35b922f6ce
parentee1bf83de79143e5893f19e1aa657d1c37ba0c70
linux-user: Use guest_range_valid in access_ok

We're currently open-coding the range check in access_ok;
use guest_range_valid when size != 0.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210212184902.1251044-15-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
linux-user/qemu.h