linux-user/hppa: Simplify init_guest_commpage
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 2 Jan 2024 01:57:40 +0000 (12:57 +1100)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 29 Feb 2024 21:35:36 +0000 (11:35 -1000)
commitd1fc62303e1447c516bf6c1fa1c6331715a88180
tree3b6f3e4c8f784a1dfbeb0daa2d018792ab962803
parentd17b684c10e1707d535b9dfa685df610834ec210
linux-user/hppa: Simplify init_guest_commpage

If reserved_va, then we have already reserved the entire
guest virtual address space; no need to remap page.
If !reserved_va, then use MAP_FIXED_NOREPLACE.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20240102015808.132373-6-richard.henderson@linaro.org>
linux-user/elfload.c