linux-user: Use #if to only call validate_guest_space for 32-bit ARM target
commit8756e1361d177e91dc6d88f37749b809fd2407fb
authorLuke Shumaker <lukeshu@parabola.nu>
Thu, 28 Dec 2017 18:08:04 +0000 (28 13:08 -0500)
committerLaurent Vivier <laurent@vivier.eu>
Fri, 9 Mar 2018 20:19:03 +0000 (9 21:19 +0100)
tree827826d499061662245a26d413722dbaf44ebb83
parentd4090306c8079ca3df426f82c493314c3537064e
linux-user: Use #if to only call validate_guest_space for 32-bit ARM target

Instead of defining a bogus validate_guest_space that always returns 1 on
targets other than 32-bit ARM, use #if blocks to only call it on 32-bit ARM
targets.  This makes the "normal" flow control clearer.

Signed-off-by: Luke Shumaker <lukeshu@parabola.nu>
Message-Id: <20171228180814.9749-2-lukeshu@lukeshu.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
[lv: fix condition to "!= 1" as requested by Peter]
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/elfload.c