]> git.ipfire.org Git - thirdparty/qemu.git/commit
bsd-user: Always use mmap_find_vma_aligned() in target_mmap()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 7 Mar 2025 13:02:21 +0000 (14:02 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Sun, 9 Mar 2025 13:54:32 +0000 (14:54 +0100)
commit019b4e84eda27a006f94ed0faa024babd0a97e97
tree8ae1339709de564904da3f7dcff5b16d9da9de85
parentc9ce8a1ffdedbc55d107c4b5629eca5d1e219165
bsd-user: Always use mmap_find_vma_aligned() in target_mmap()

Massage target_mmap(): calculate alignment once, then
unconditionally call mmap_find_vma_aligned().

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Warner Losh <imp@bsdimp.com>
Message-Id: <20250308122842.76377-2-philmd@linaro.org>
bsd-user/mmap.c