From: Richard Henderson Date: Tue, 2 Jan 2024 01:57:44 +0000 (+1100) Subject: linux-user: Remove REAL_HOST_PAGE_ALIGN from mmap.c X-Git-Tag: v9.0.0-rc0~36^2~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e56922abf0754df87fff949cc1f8f23956552aba;p=thirdparty%2Fqemu.git linux-user: Remove REAL_HOST_PAGE_ALIGN from mmap.c We already have qemu_real_host_page_size() in a local variable. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Reviewed-by: Ilya Leoshkevich Acked-by: Helge Deller Message-Id: <20240102015808.132373-10-richard.henderson@linaro.org> --- diff --git a/linux-user/mmap.c b/linux-user/mmap.c index 4d3c8717b95..53e5486cc80 100644 --- a/linux-user/mmap.c +++ b/linux-user/mmap.c @@ -585,7 +585,7 @@ abi_long target_mmap(abi_ulong start, abi_ulong len, int target_prot, * the hosts real pagesize. Additional anonymous maps * will be created beyond EOF. */ - len = REAL_HOST_PAGE_ALIGN(sb.st_size - offset); + len = ROUND_UP(sb.st_size - offset, host_page_size); } }