Re: [PATCH 16/30] bsd-user/signal.c: host_to_target_siginfo_noswap

2022-01-24 Thread Warner Losh
On Sun, Jan 23, 2022 at 7:05 PM Richard Henderson < richard.hender...@linaro.org> wrote: > On 1/10/22 3:19 AM, Warner Losh wrote: > > +static inline void host_to_target_siginfo_noswap(target_siginfo_t > *tinfo, > > +const siginfo_t *info) > > +{ > > +int sig, code; > > + > > +sig =

Re: [PATCH 16/30] bsd-user/signal.c: host_to_target_siginfo_noswap

2022-01-23 Thread Richard Henderson
On 1/10/22 3:19 AM, Warner Losh wrote: +static inline void host_to_target_siginfo_noswap(target_siginfo_t *tinfo, +const siginfo_t *info) +{ +int sig, code; + +sig = host_to_target_signal(info->si_signo); You now have a target signo, so... +if (SIGILL == sig || SIGFPE == s

Re: [PATCH 16/30] bsd-user/signal.c: host_to_target_siginfo_noswap

2022-01-15 Thread Peter Maydell
On Sat, 15 Jan 2022 at 06:19, Warner Losh wrote: > I need to work through those things in our development branch before trying > to fold them into this series. And I'm not yet sure the right way to do that > because > many of the things are likely to be largish changes that may be tough to > man

Re: [PATCH 16/30] bsd-user/signal.c: host_to_target_siginfo_noswap

2022-01-14 Thread Warner Losh
On Thu, Jan 13, 2022 at 12:43 PM Peter Maydell wrote: > On Sun, 9 Jan 2022 at 16:41, Warner Losh wrote: > > > > Implement conversion of host to target siginfo. > > > > Signed-off-by: Stacey Son > > Signed-off-by: Kyle Evans > > Signed-off-by: Warner Losh > > --- > > bsd-user/signal.c | 37 ++

Re: [PATCH 16/30] bsd-user/signal.c: host_to_target_siginfo_noswap

2022-01-13 Thread Peter Maydell
On Sun, 9 Jan 2022 at 16:41, Warner Losh wrote: > > Implement conversion of host to target siginfo. > > Signed-off-by: Stacey Son > Signed-off-by: Kyle Evans > Signed-off-by: Warner Losh > --- > bsd-user/signal.c | 37 + > 1 file changed, 37 insertions(+) >

[PATCH 16/30] bsd-user/signal.c: host_to_target_siginfo_noswap

2022-01-09 Thread Warner Losh
Implement conversion of host to target siginfo. Signed-off-by: Stacey Son Signed-off-by: Kyle Evans Signed-off-by: Warner Losh --- bsd-user/signal.c | 37 + 1 file changed, 37 insertions(+) diff --git a/bsd-user/signal.c b/bsd-user/signal.c index 7168d851be