diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2019-05-19 13:19:52 -0700 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2019-05-24 13:16:21 +0200 |
commit | 30ab9ef2967dde22193f609b6ec56101c156b061 (patch) | |
tree | 128863abc52b116065b5d5c162e0335592e60254 /linux-user/qemu.h | |
parent | abcac736c1505254ec3f9587aff04fbe4705a55e (diff) |
linux-user: Fix shmat emulation by honoring host SHMLBA
For those hosts with SHMLBA > getpagesize, we don't automatically
select a guest address that is compatible with the host. We can
achieve this by boosting the alignment of guest_base and by adding
an extra alignment argument to mmap_find_vma.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20190519201953.20161-13-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/qemu.h')
-rw-r--r-- | linux-user/qemu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/qemu.h b/linux-user/qemu.h index ef400cb78a..82d33d7e93 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -443,7 +443,7 @@ abi_long target_mremap(abi_ulong old_addr, abi_ulong old_size, abi_ulong new_addr); extern unsigned long last_brk; extern abi_ulong mmap_next_start; -abi_ulong mmap_find_vma(abi_ulong, abi_ulong); +abi_ulong mmap_find_vma(abi_ulong, abi_ulong, abi_ulong); void mmap_fork_start(void); void mmap_fork_end(int child); |