linux-user: Consolidate guest bounds check in probe_guest_base
commit0c441aeb39ce77cf0c68c93f94f1e64addaefaff
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 7 Aug 2023 03:46:36 +0000 (6 20:46 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 8 Aug 2023 20:27:17 +0000 (8 13:27 -0700)
treea5752c36e55844ab49f2d61ed0341c4ec69c339f
parent435c042fdcfd383cee5402fb7fa5ac3e616f11df
linux-user: Consolidate guest bounds check in probe_guest_base

The three sets of checks are identical, logically.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/elfload.c