Re: [PATCH 1/7] linux-user/nios2: Fix clone child return

2022-03-25 Thread Richard Henderson
On 3/25/22 05:49, Peter Maydell wrote: On Sun, 20 Mar 2022 at 16:12, Richard Henderson wrote: The child side of clone needs to set the secondary syscall return value, r7, to indicate syscall success. Advance the pc before do_syscall, so that the new thread does not re-execute the clone syscal

Re: [PATCH 1/7] linux-user/nios2: Fix clone child return

2022-03-25 Thread Peter Maydell
On Sun, 20 Mar 2022 at 16:12, Richard Henderson wrote: > > The child side of clone needs to set the secondary > syscall return value, r7, to indicate syscall success. > > Advance the pc before do_syscall, so that the new thread > does not re-execute the clone syscall. > > Signed-off-by: Richard He

[PATCH 1/7] linux-user/nios2: Fix clone child return

2022-03-20 Thread Richard Henderson
The child side of clone needs to set the secondary syscall return value, r7, to indicate syscall success. Advance the pc before do_syscall, so that the new thread does not re-execute the clone syscall. Signed-off-by: Richard Henderson --- linux-user/nios2/target_cpu.h | 1 + linux-user/nios2/cp