summaryrefslogtreecommitdiff
path: root/emulators/qemu-devel/files/patch-z7b-bsd-user-tls2
blob: 81dc689b6869a36b1a3d6af931a46ba3126a286c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/bsd-user/syscall.c
+++ b/bsd-user/syscall.c
@@ -266,9 +268,7 @@ static abi_long do_freebsd_sysarch(void 
 
     switch (op) {
     case TARGET_FREEBSD_ARM_SET_TP:
-        if (get_user(val, parms, abi_ulong))
-           return -TARGET_EINVAL;
-        cpu_set_tls(env, val);
+        cpu_set_tls(env, parms);
         return 0;
     }