[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 108/108] linux-user: Fold away do_syscall1
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PATCH v2 108/108] linux-user: Fold away do_syscall1 |
Date: |
Sat, 9 Jun 2018 17:02:20 -1000 |
Signed-off-by: Richard Henderson <address@hidden>
---
linux-user/syscall.c | 21 ++-------------------
1 file changed, 2 insertions(+), 19 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 7a94a0b0e9..a4cef22436 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -13204,23 +13204,6 @@ IMPL(writev)
return ret;
}
-/* This is an internal helper for do_syscall so that it is easier
- * to have a single return point, so that actions, such as logging
- * of syscall results, can be performed.
- * All errnos that do_syscall() returns must be -TARGET_<errcode>.
- */
-static abi_long do_syscall1(void *cpu_env, unsigned num, abi_long arg1,
- abi_long arg2, abi_long arg3, abi_long arg4,
- abi_long arg5, abi_long arg6, abi_long arg7,
- abi_long arg8)
-{
- switch(num) {
- default:
- gemu_log("qemu: Unsupported syscall: %d\n", num);
- return -TARGET_ENOSYS;
- }
-}
-
/* The default action for a syscall not listed in syscall_table is to
* log the missing syscall. If a syscall is intentionally emulated as
* not present, then list it with impl_enosys as the implementation,
@@ -13953,8 +13936,8 @@ static impl_fn *syscall_table(unsigned num)
#undef SYSCALL
#undef SYSCALL_WITH
- /* After do_syscall1 is fully split, this will be impl_enosys. */
- return do_syscall1;
+ gemu_log("qemu: Unsupported syscall: %u\n", num);
+ return impl_enosys;
}
abi_long do_syscall(void *cpu_env, unsigned num, abi_long arg1,
--
2.17.1
- [Qemu-devel] [PATCH v2 099/108] linux-user: Split out signalfd, signalfd4, (continued)
- [Qemu-devel] [PATCH v2 099/108] linux-user: Split out signalfd, signalfd4, Richard Henderson, 2018/06/09
- [Qemu-devel] [PATCH v2 098/108] linux-user: Split out fallocate, sync_file_range/2, Richard Henderson, 2018/06/09
- [Qemu-devel] [PATCH v2 100/108] linux-user: Split out epoll syscalls, Richard Henderson, 2018/06/09
- [Qemu-devel] [PATCH v2 101/108] linux-user: Split out prlimit64, Richard Henderson, 2018/06/09
- [Qemu-devel] [PATCH v2 102/108] linux-user: Split out atomic_barrier, gethostname, Richard Henderson, 2018/06/09
- [Qemu-devel] [PATCH v2 103/108] linux-user: Split out atomic_cmpxchg_32, Richard Henderson, 2018/06/09
- [Qemu-devel] [PATCH v2 104/108] linux-user: Split out timer syscalls, Richard Henderson, 2018/06/09
- [Qemu-devel] [PATCH v2 105/108] linux-user: Split out timerfd syscalls, Richard Henderson, 2018/06/09
- [Qemu-devel] [PATCH v2 106/108] linux-user: Split out ioprio_get, ioprio_set, kcmp, Richard Henderson, 2018/06/09
- [Qemu-devel] [PATCH v2 107/108] linux-user: Split out setns, unshare, Richard Henderson, 2018/06/09
- [Qemu-devel] [PATCH v2 108/108] linux-user: Fold away do_syscall1,
Richard Henderson <=
- Re: [Qemu-devel] [PATCH v2 000/108] linux-user: Split do_syscall, no-reply, 2018/06/10
- Re: [Qemu-devel] [PATCH v2 000/108] linux-user: Split do_syscall, no-reply, 2018/06/10
- Re: [Qemu-devel] [PATCH v2 000/108] linux-user: Split do_syscall, Peter Maydell, 2018/06/10
- Re: [Qemu-devel] [PATCH v2 000/108] linux-user: Split do_syscall, Richard Henderson, 2018/06/10