]> git.proxmox.com Git - mirror_qemu.git/commit
linux-user: use libc wrapper instead of direct mremap syscall
authorFelix Janda <felix.janda@posteo.de>
Fri, 30 Sep 2016 23:39:27 +0000 (19:39 -0400)
committerRiku Voipio <riku.voipio@linaro.org>
Fri, 21 Oct 2016 12:19:41 +0000 (15:19 +0300)
commit52956a9b46e2a0894bc2de039e3704a4e23e6907
treec8d6e72e41e060ebc944d9288cc1df55c5918747
parent04c95f4da7f657a0bef17d115d0a5ca2ac0e2d22
linux-user: use libc wrapper instead of direct mremap syscall

This commit essentially reverts commit
3af72a4d98dca033492102603734cbc63cd2694a, which has replaced
five-argument calls to mremap() by direct mremap syscalls for
compatibility with glibc older than version 2.4.

The direct syscall was buggy for 64bit targets on 32bit hosts
because of the default integer type promotions. Since glibc-2.4
is now a decade old, we can remove this workaround.

Signed-off-by: Felix Janda <felix.janda@posteo.de>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/mmap.c