Re: [PATCH 6/7] linux-user/nios2: Use QEMU_ESIGRETURN from do_rt_sigreturn

2022-03-25 Thread Richard Henderson
On 3/25/22 06:16, Peter Maydell wrote: +return -QEMU_ESIGRETURN; badframe: unlock_user_struct(frame, frame_addr, 0); Don't you also need to return -QEMU_ESIGRETURN in the badframe error-handling case? The other guest architecture implementations of do_sigreturn seem to do that.

Re: [PATCH 6/7] linux-user/nios2: Use QEMU_ESIGRETURN from do_rt_sigreturn

2022-03-25 Thread Peter Maydell
On Sun, 20 Mar 2022 at 16:06, Richard Henderson wrote: > > Drop the kernel-specific "pr2" code structure and use > the qemu-specific error return value. > > Signed-off-by: Richard Henderson > --- > linux-user/nios2/signal.c | 10 +++--- > 1 file changed, 3 insertions(+), 7 deletions(-) > >

[PATCH 6/7] linux-user/nios2: Use QEMU_ESIGRETURN from do_rt_sigreturn

2022-03-20 Thread Richard Henderson
Drop the kernel-specific "pr2" code structure and use the qemu-specific error return value. Signed-off-by: Richard Henderson --- linux-user/nios2/signal.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/linux-user/nios2/signal.c b/linux-user/nios2/signal.c index