]> git.proxmox.com Git - mirror_qemu.git/commit - bsd-user/mmap.c
bsd-user: Specify host page alignment if none specified
authorWarner Losh <imp@bsdimp.com>
Fri, 28 Jul 2023 16:29:27 +0000 (10:29 -0600)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 31 Jul 2023 19:19:13 +0000 (12:19 -0700)
commit0f2f3247d456e08baa345768824dae6864d9acb6
tree00c252acc82d06890345b583da4f225d29b3fdbc
parent28b61d49ac80bac8ef74aff0b75058bdd0b2f108
bsd-user: Specify host page alignment if none specified

We're hitting an assert when we pass in alignment == 0 since that's not
a power of two. so pass in the ideal page size.

Signed-off-by: Warner Losh <imp@bsdimp.com>
Message-Id: <20230728162927.5009-1-imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
bsd-user/mmap.c