diff options
author | Peter Maydell | 2013-07-06 18:39:48 +0200 |
---|---|---|
committer | Riku Voipio | 2013-07-23 16:28:28 +0200 |
commit | 82f05b69e6b701157b4a2e7d76ae6cf5542d66c9 (patch) | |
tree | 3ed5cc4c5d349608f3aaa7ff3bc32a0675962726 /linux-user | |
parent | linux-user: Fix target_stat and target_stat64 for OpenRISC (diff) | |
download | qemu-82f05b69e6b701157b4a2e7d76ae6cf5542d66c9.tar.gz qemu-82f05b69e6b701157b4a2e7d76ae6cf5542d66c9.tar.xz qemu-82f05b69e6b701157b4a2e7d76ae6cf5542d66c9.zip |
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 <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/syscall.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 5bd57d0a72..a797afc340 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 } |