summaryrefslogtreecommitdiffstats
path: root/linux-user/syscall.c
diff options
context:
space:
mode:
authorPeter Maydell2013-07-16 19:44:59 +0200
committerRiku Voipio2013-07-22 20:54:46 +0200
commit2667e71c3d9262d756bea1473e2ea28eb2c9c070 (patch)
tree3741de9edf902f34c0d79ced3a03aaf338abcada /linux-user/syscall.c
parentlinux-user: Add i386 TLS setter (diff)
downloadqemu-2667e71c3d9262d756bea1473e2ea28eb2c9c070.tar.gz
qemu-2667e71c3d9262d756bea1473e2ea28eb2c9c070.tar.xz
qemu-2667e71c3d9262d756bea1473e2ea28eb2c9c070.zip
linux-user: Enable NPTL for x86-64
Add x86-64 implementation of cpu_set_tls() (like the kernel, we just have to call do_arch_prctl() to set FS); this allows us to enable NPTL. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r--linux-user/syscall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 452b89df8d..d3b3590e8d 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -4189,7 +4189,7 @@ static abi_long do_get_thread_area(CPUX86State *env, abi_ulong ptr)
#endif /* TARGET_I386 && TARGET_ABI32 */
#ifndef TARGET_ABI32
-static abi_long do_arch_prctl(CPUX86State *env, int code, abi_ulong addr)
+abi_long do_arch_prctl(CPUX86State *env, int code, abi_ulong addr)
{
abi_long ret = 0;
abi_ulong val;