From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOS8C-0001dx-JL for qemu-devel@nongnu.org; Wed, 17 Oct 2012 07:49:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOS86-0003K6-Pn for qemu-devel@nongnu.org; Wed, 17 Oct 2012 07:49:48 -0400 Received: from mail-we0-f173.google.com ([74.125.82.173]:36089) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOS86-0003J8-JB for qemu-devel@nongnu.org; Wed, 17 Oct 2012 07:49:42 -0400 Received: by mail-we0-f173.google.com with SMTP id t11so4360163wey.4 for ; Wed, 17 Oct 2012 04:49:41 -0700 (PDT) From: edgar.iglesias@gmail.com Date: Wed, 17 Oct 2012 12:42:23 +0200 Message-Id: <1350470544-14425-1-git-send-email-edgar.iglesias@gmail.com> Subject: [Qemu-devel] [PATCH 1/2] microblaze: Support setting of TLS ptr List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- linux-user/syscall.c | 2 ++ target-microblaze/cpu.h | 1 + 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 471d060..c6a6337 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -6888,6 +6888,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, ret = get_errno(do_fork(cpu_env, arg1, arg2, arg3, arg5, arg4)); #elif defined(TARGET_CRIS) ret = get_errno(do_fork(cpu_env, arg2, arg1, arg3, arg4, arg5)); +#elif defined(TARGET_MICROBLAZE) + ret = get_errno(do_fork(cpu_env, arg1, arg2, arg4, arg6, arg5)); #elif defined(TARGET_S390X) ret = get_errno(do_fork(cpu_env, arg2, arg1, arg3, arg5, arg4)); #else diff --git a/target-microblaze/cpu.h b/target-microblaze/cpu.h index 4968c24..88430b5 100644 --- a/target-microblaze/cpu.h +++ b/target-microblaze/cpu.h @@ -345,6 +345,7 @@ static inline void cpu_clone_regs(CPUMBState *env, target_ulong newsp) static inline void cpu_set_tls(CPUMBState *env, target_ulong newtls) { + env->regs[21] = newtls; } static inline int cpu_interrupts_enabled(CPUMBState *env) -- 1.7.8.6