diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-11-26 18:47:20 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-11-26 18:47:20 +0000 |
commit | 048f6b4df7ca3be292f40f7f56fd4e48edcabbe9 (patch) | |
tree | 2d297f570bdc37d620a882181d2dcf8917fcc8b8 /linux-user/syscall.c | |
parent | eeef26cd428b584a8211cc42185585c840b778f4 (diff) |
mips user emulation
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1668 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r-- | linux-user/syscall.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index e51f513532..f5b7f8e68d 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -1497,6 +1497,8 @@ int do_fork(CPUState *env, unsigned int flags, unsigned long newsp) new_env->regs[0] = 0; #elif defined(TARGET_SPARC) printf ("HELPME: %s:%d\n", __FILE__, __LINE__); +#elif defined(TARGET_MIPS) + printf ("HELPME: %s:%d\n", __FILE__, __LINE__); #elif defined(TARGET_PPC) if (!newsp) newsp = env->gpr[1]; @@ -2184,6 +2186,7 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3, ret = get_errno(settimeofday(&tv, NULL)); } break; +#ifdef TARGET_NR_select case TARGET_NR_select: { struct target_sel_arg_struct *sel = (void *)arg1; @@ -2196,6 +2199,7 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3, (void *)sel->exp, (void *)sel->tvp); } break; +#endif case TARGET_NR_symlink: ret = get_errno(symlink((const char *)arg1, (const char *)arg2)); break; @@ -2802,9 +2806,11 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3, case TARGET_NR_putpmsg: goto unimplemented; #endif +#ifdef TARGET_NR_vfork case TARGET_NR_vfork: ret = get_errno(do_fork(cpu_env, CLONE_VFORK | CLONE_VM | SIGCHLD, 0)); break; +#endif #ifdef TARGET_NR_ugetrlimit case TARGET_NR_ugetrlimit: { |