linux-user: Rewrite fixed probe_guest_base
commit06f38c6688f8b7dcf65377b3302e45bfecc5e060
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 7 Aug 2023 04:03:27 +0000 (6 21:03 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 8 Aug 2023 20:33:22 +0000 (8 13:33 -0700)
tree3696fa18516bdc1fd4af5253a4933a8b78659cd1
parent0c441aeb39ce77cf0c68c93f94f1e64addaefaff
linux-user: Rewrite fixed probe_guest_base

Create a set of subroutines to collect a set of guest addresses,
all of which must be mappable on the host.  Use this within the
renamed pgb_fixed subroutine to validate the user's choice of
guest_base specified by the -B command-line option.

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