]> git.ipfire.org Git - thirdparty/qemu.git/commit
linux-user: Use walk_memory_regions for open_self_maps
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 9 Aug 2023 03:02:19 +0000 (20:02 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 1 Sep 2023 20:34:16 +0000 (13:34 -0700)
commit7b7a3366e142d3baeb3fd1d3660a50e7956c19eb
tree630fee27ea298e5b305da9116bf424eb5aba2992
parent79be812bdb6d476b35b0a0a9cda5432673b1f5f3
linux-user: Use walk_memory_regions for open_self_maps

Replace the by-hand method of region identification with
the official user-exec interface.  Cross-check the region
provided to the callback with the interval tree from
read_self_maps().

Tested-by: Helge Deller <deller@gmx.de>
Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/syscall.c