projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e358465
)
Patch for pipe() result handling, by Stuart Anderson.
author
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 1 Jun 2007 11:50:36 +0000
(11:50 +0000)
committer
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 1 Jun 2007 11:50:36 +0000
(11:50 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2907
c046a42c
-6fe2-441c-8c8c-
71466251a162
linux-user/syscall.c
patch
|
blob
|
history
diff --git
a/linux-user/syscall.c
b/linux-user/syscall.c
index c80f329c2125e5fd478e3007574d089db8677d5c..64cd5da21e4c6bdf2e51954a7ceb632f3bb39619 100644
(file)
--- a/
linux-user/syscall.c
+++ b/
linux-user/syscall.c
@@
-2338,8
+2338,13
@@
long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
int host_pipe[2];
ret = get_errno(pipe(host_pipe));
if (!is_error(ret)) {
+#if defined(TARGET_MIPS)
+ ((CPUMIPSState*)cpu_env)->gpr[3] = host_pipe[1];
+ ret = host_pipe[0];
+#else
tput32(arg1, host_pipe[0]);
tput32(arg1 + 4, host_pipe[1]);
+#endif
}
}
break;