linux-user: Handle TARGET_MAP_STACK and TARGET_MAP_HUGETLB
commit541e1690420d293c1b09eeb128fac74e98cbef7a
authorHelge Deller <deller@gmx.de>
Tue, 31 Oct 2017 12:53:58 +0000 (31 13:53 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Tue, 7 Nov 2017 19:58:13 +0000 (7 21:58 +0200)
treef42e3baff4cd927d209bd929c58e84a5c4ef37d6
parent3d60c84deaa11826ff0bc7599aeb73cad54c4fbf
linux-user: Handle TARGET_MAP_STACK and TARGET_MAP_HUGETLB

Add the missing defines and for TARGET_MAP_STACK and TARGET_MAP_HUGETLB
for alpha, mips, ppc, x86, hppa.  Fix the mmap_flags translation table
to translate MAP_HUGETLB between host and target architecture, and to
drop MAP_STACK.

Signed-off-by: Helge Deller <deller@gmx.de>
Message-Id: <20170311183016.GA20514@ls3530.fritz.box>
[rth: Drop MAP_STACK instead of translating it, since it is ignored
in the kernel anyway.  Fix tabs to spaces.]
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/syscall.c
linux-user/syscall_defs.h