From 82f05b69e6b701157b4a2e7d76ae6cf5542d66c9 Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Sat, 6 Jul 2013 17:39:48 +0100 Subject: linux-user: Fix pipe syscall return for SPARC SPARC is one of the CPUs which has a funny syscall ABI for the pipe syscall; add it to the set of special cases in do_pipe(). Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'linux-user') diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 5bd57d0..a797afc 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -1032,6 +1032,9 @@ static abi_long do_pipe(void *cpu_env, abi_ulong pipedes, #elif defined(TARGET_SH4) ((CPUSH4State*)cpu_env)->gregs[1] = host_pipe[1]; return host_pipe[0]; +#elif defined(TARGET_SPARC) + ((CPUSPARCState*)cpu_env)->regwptr[1] = host_pipe[1]; + return host_pipe[0]; #endif } -- cgit v1.1