From ef96779bc3df7f4fe228fb9a5c7ecb81a04b2644 Mon Sep 17 00:00:00 2001 From: edgar_igl Date: Wed, 7 Jan 2009 14:19:38 +0000 Subject: CRIS: Implement set_thread_area for CRIS. Signed-off-by: Edgar E. Iglesias git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6210 c046a42c-6fe2-441c-8c8c-71466251a162 --- linux-user/syscall.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'linux-user/syscall.c') diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 3cc14b8e3f..18d008c1c4 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -5912,6 +5912,14 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, ((CPUMIPSState *) cpu_env)->tls_value = arg1; ret = 0; break; +#elif defined(TARGET_CRIS) + if (arg1 & 0xff) + ret = -TARGET_EINVAL; + else { + ((CPUCRISState *) cpu_env)->pregs[PR_PID] = arg1; + ret = 0; + } + break; #elif defined(TARGET_I386) && defined(TARGET_ABI32) ret = do_set_thread_area(cpu_env, arg1); break; -- cgit v1.2.3