mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 11:23:43 +08:00
linux-user: Align mmap_find_vma to host page size
This can avoid stack allocation failures for i386 guest on ppc64 (64k page) host. Suggested-by: Laurent Vivier <laurent@vivier.eu> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20190519201953.20161-14-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
30ab9ef296
commit
443b7505c6
@ -262,6 +262,8 @@ abi_ulong mmap_find_vma(abi_ulong start, abi_ulong size, abi_ulong align)
|
||||
abi_ulong addr;
|
||||
int wrapped, repeat;
|
||||
|
||||
align = MAX(align, qemu_host_page_size);
|
||||
|
||||
/* If 'start' == 0, then a default start address is used. */
|
||||
if (start == 0) {
|
||||
start = mmap_next_start;
|
||||
|
Loading…
Reference in New Issue
Block a user