[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 for-7.1 0/8] linux-user/nios2: Fix clone and sigreturn
From: |
Richard Henderson |
Subject: |
[PATCH v2 for-7.1 0/8] linux-user/nios2: Fix clone and sigreturn |
Date: |
Fri, 25 Mar 2022 13:52:42 -0600 |
These two syscalls are the reason that the generic linux-user
tests were failing, which allows us to re-enable the tests.
Changes for v2:
* Hoist the pc advance to apply to all EXCP_TRAP.
Fixing this properly requires larger changes outside of linux-user;
deferred until EIC patch set also committed.
* Treat ret < 0 as error, per the kernel syscall path.
* Return ESIGRETURN from badframe path.
r~
Richard Henderson (8):
linux-user/nios2: Hoist pc advance to the top of EXCP_TRAP
linux-user/nios2: Fix clone child return
linux-user/nios2: Drop syscall 0 "workaround"
linux-user/nios2: Adjust error return
linux-user/nios2: Handle special qemu syscall return values
linux-user/nios2: Remove do_sigreturn
linux-user/nios2: Use QEMU_ESIGRETURN from do_rt_sigreturn
tests/tcg/nios2: Re-enable linux-user tests
linux-user/nios2/target_cpu.h | 1 +
linux-user/nios2/cpu_loop.c | 27 ++++++++++++++++++++-------
linux-user/nios2/signal.c | 19 ++++---------------
tests/tcg/nios2/Makefile.target | 11 -----------
4 files changed, 25 insertions(+), 33 deletions(-)
delete mode 100644 tests/tcg/nios2/Makefile.target
--
2.25.1
- [PATCH v2 for-7.1 0/8] linux-user/nios2: Fix clone and sigreturn,
Richard Henderson <=
- [PATCH v2 5/8] linux-user/nios2: Handle special qemu syscall return values, Richard Henderson, 2022/03/25
- [PATCH v2 2/8] linux-user/nios2: Fix clone child return, Richard Henderson, 2022/03/25
- [PATCH v2 1/8] linux-user/nios2: Hoist pc advance to the top of EXCP_TRAP, Richard Henderson, 2022/03/25
- [PATCH v2 3/8] linux-user/nios2: Drop syscall 0 "workaround", Richard Henderson, 2022/03/25
- [PATCH v2 7/8] linux-user/nios2: Use QEMU_ESIGRETURN from do_rt_sigreturn, Richard Henderson, 2022/03/25
- [PATCH v2 6/8] linux-user/nios2: Remove do_sigreturn, Richard Henderson, 2022/03/25
- [PATCH v2 8/8] tests/tcg/nios2: Re-enable linux-user tests, Richard Henderson, 2022/03/25