Re: [PATCH 3/6] bsd-user/freebsd/os-syscall.c: Tracing and error boilerplate

2022-06-07 Thread Warner Losh
On Tue, Jun 7, 2022 at 2:34 PM Richard Henderson < richard.hender...@linaro.org> wrote: > On 6/7/22 13:14, Warner Losh wrote: > > +static abi_long freebsd_syscall(void *cpu_env, int num, abi_long arg1, > > +abi_long arg2, abi_long arg3, abi_long > arg4, > > +

Re: [PATCH 3/6] bsd-user/freebsd/os-syscall.c: Tracing and error boilerplate

2022-06-07 Thread Richard Henderson
On 6/7/22 13:14, Warner Losh wrote: +static abi_long freebsd_syscall(void *cpu_env, int num, abi_long arg1, +abi_long arg2, abi_long arg3, abi_long arg4, +abi_long arg5, abi_long arg6, abi_long arg7, +

[PATCH 3/6] bsd-user/freebsd/os-syscall.c: Tracing and error boilerplate

2022-06-07 Thread Warner Losh
Add in the tracing and this system call not implemented boilerplate. Do this by moving the guts of do_freebsd_syscall to freebsd_syscall. Put the tracing in the wrapper function. Since freebsd_syscall is a singleton static function, it will almost certainly be inlined. Fix comments that referred to