Re: [PATCH 3/7] linux-user/nios2: Adjust error return

2022-03-25 Thread Richard Henderson
On 3/25/22 07:37, Peter Maydell wrote: This turns out to be because in 2015 kernel commit c3525940cca5 switched powerpc from checking against 515/516 and instead made them check MAX_ERRNO (4095). (If anybody cared about seccomp on sparc hosts they'd probably want to fix the sparc kernel similarl

Re: [PATCH 3/7] linux-user/nios2: Adjust error return

2022-03-25 Thread Peter Maydell
On Fri, 25 Mar 2022 at 12:12, Peter Maydell wrote: > > On Sun, 20 Mar 2022 at 16:06, Richard Henderson > wrote: > > > > Follow syscall_set_return_value rather than the kernel assembly > > in setting the syscall return values. Only negate ret on error. > > > > Signed-off-by: Richard Henderson >

Re: [PATCH 3/7] linux-user/nios2: Adjust error return

2022-03-25 Thread Peter Maydell
On Sun, 20 Mar 2022 at 16:06, Richard Henderson wrote: > > Follow syscall_set_return_value rather than the kernel assembly > in setting the syscall return values. Only negate ret on error. > > Signed-off-by: Richard Henderson > --- > linux-user/nios2/cpu_loop.c | 15 --- > 1 file ch

[PATCH 3/7] linux-user/nios2: Adjust error return

2022-03-20 Thread Richard Henderson
Follow syscall_set_return_value rather than the kernel assembly in setting the syscall return values. Only negate ret on error. Signed-off-by: Richard Henderson --- linux-user/nios2/cpu_loop.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/linux-user/nios2/