]> git.proxmox.com Git - mirror_qemu.git/blobdiff - linux-user/openrisc/target_cpu.h
linux-user: Honor CLONE_SETTLS for openrisc
[mirror_qemu.git] / linux-user / openrisc / target_cpu.h
index a21ed1aff883dbb0e7337a61c69b48a713b0e315..f283d96a9353ed85b2316e5b1eddd8bab26fd41e 100644 (file)
@@ -30,9 +30,7 @@ static inline void cpu_clone_regs(CPUOpenRISCState *env, target_ulong newsp)
 
 static inline void cpu_set_tls(CPUOpenRISCState *env, target_ulong newtls)
 {
-    /* Linux kernel 3.10 does not pay any attention to CLONE_SETTLS
-     * in copy_thread(), so QEMU need not do so either.
-     */
+    env->gpr[10] = newtls;
 }
 
 #endif