linux-user: Fix guest_addr_valid vs reserved_va
commita78a6363cb8e55cc8ede334ba68d54ba8a185409
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 12 Feb 2021 18:48:41 +0000 (12 10:48 -0800)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 16 Feb 2021 11:04:53 +0000 (16 11:04 +0000)
tree9ced000eaaffd42e54d4c081cbdc2a98c4c6bf59
parent57096f2977fe4b926343162df504652445dfcbcf
linux-user: Fix guest_addr_valid vs reserved_va

We must always use GUEST_ADDR_MAX, because even 32-bit hosts can
use -R <reserved_va> to restrict the memory address of the guest.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210212184902.1251044-11-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
include/exec/cpu_ldst.h