projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7819df
)
linux-user: Fix pipe syscall return for SPARC
author
Peter Maydell
<peter.maydell@linaro.org>
Sat, 6 Jul 2013 16:39:48 +0000
(17:39 +0100)
committer
Riku Voipio
<riku.voipio@linaro.org>
Tue, 23 Jul 2013 14:28:28 +0000
(17:28 +0300)
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>
linux-user/syscall.c
patch
|
blob
|
history
diff --git
a/linux-user/syscall.c
b/linux-user/syscall.c
index 5bd57d0a720d7856a2e286ef4c7477d6d5baa072..a797afc34072b1306ab6e82ac9e10b1e419f1879 100644
(file)
--- 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
}