mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 14:53:54 -06:00
CRIS: Implement set_thread_area for CRIS.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6210 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
35ef81d6d2
commit
ef96779bc3
4 changed files with 53 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue