alpha-linux-user: Fix getxpid.

Put ppid in the second return register.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
Richard Henderson 2010-05-03 10:07:53 -07:00 committed by Aurelien Jarno
parent fb41a66edd
commit 9231733a82

View File

@ -4497,13 +4497,18 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
case TARGET_NR_lseek: case TARGET_NR_lseek:
ret = get_errno(lseek(arg1, arg2, arg3)); ret = get_errno(lseek(arg1, arg2, arg3));
break; break;
#ifdef TARGET_NR_getxpid #if defined(TARGET_NR_getxpid) && defined(TARGET_ALPHA)
/* Alpha specific */
case TARGET_NR_getxpid: case TARGET_NR_getxpid:
#else ((CPUAlphaState *)cpu_env)->ir[IR_A4] = getppid();
case TARGET_NR_getpid:
#endif
ret = get_errno(getpid()); ret = get_errno(getpid());
break; break;
#endif
#ifdef TARGET_NR_getpid
case TARGET_NR_getpid:
ret = get_errno(getpid());
break;
#endif
case TARGET_NR_mount: case TARGET_NR_mount:
{ {
/* need to look at the data field */ /* need to look at the data field */