[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] SH4,linux-user, Add pipe syscall support.
From: |
Takashi Yoshii |
Subject: |
[Qemu-devel] [PATCH] SH4,linux-user, Add pipe syscall support. |
Date: |
Sat, 23 Feb 2008 08:17:09 +0900 |
This one should be applied to run sh4-linux userland. /yoshii
---
add handling of return values of pipe syscall for SH4.
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -3514,6 +3514,9 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
CPUMIPSState *env = (CPUMIPSState*)cpu_env;
env->gpr[env->current_tc][3] = host_pipe[1];
ret = host_pipe[0];
+#elif defined(TARGET_SH4)
+ ((CPUSH4State*)cpu_env)->gregs[1] = host_pipe[1];
+ ret = host_pipe[0];
#else
if (put_user_s32(host_pipe[0], arg1)
|| put_user_s32(host_pipe[1], arg1 + sizeof(host_pipe[0])))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] SH4,linux-user, Add pipe syscall support.,
Takashi Yoshii <=