[PULL 54/59] linux-user: Honor TARGET_ARCH_HAS_SA_RESTORER in do_syscall

2021-05-18 Thread Laurent Vivier
From: Richard Henderson Do not access a field that may not be present. This will become an issue when sharing more code in the next patch. Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Message-Id:

[PULL 52/59] linux-user/alpha: Rename the sigaction restorer field

2021-05-18 Thread Laurent Vivier
From: Richard Henderson Use ka_restorer, in line with TARGET_ARCH_HAS_KA_RESTORER vs TARGET_ARCH_HAS_SA_RESTORER, since Alpha passes this field as a syscall argument. Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée Message-Id: <20210422230227.314751-3-richard.hender...@linaro.org>

[PULL 48/59] linux-user: Add copy_file_range to strace.list

2021-05-18 Thread Laurent Vivier
From: Giuseppe Musacchio Signed-off-by: Giuseppe Musacchio Reviewed-by: Laurent Vivier Message-Id: <20210503174159.54302-2-thatle...@gmail.com> Signed-off-by: Laurent Vivier --- linux-user/strace.list | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user/strace.list

[PULL 43/59] linux-user/s390x: Add stub sigframe argument for last_break

2021-05-18 Thread Laurent Vivier
From: Richard Henderson In order to properly present these arguments, we need to add code to target/s390x to record LowCore parameters for user-only. But in the meantime, at least zero the missing last_break argument, and fixup the comment style in the vicinity. Signed-off-by: Richard

[PULL 44/59] linux-user/s390x: Fix frame_addr corruption in setup_frame

2021-05-18 Thread Laurent Vivier
From: Richard Henderson The original value of frame_addr is still required for its use in the call to unlock_user_struct below. Signed-off-by: Richard Henderson Reviewed-by: David Hildenbrand Message-Id: <20210428193408.233706-13-richard.hender...@linaro.org> Signed-off-by: Laurent Vivier

[PULL 45/59] linux-user/s390x: Add build asserts for sigset sizes

2021-05-18 Thread Laurent Vivier
From: Richard Henderson At point of usage, it's not immediately obvious that we don't need a loop to copy these arrays. Signed-off-by: Richard Henderson Reviewed-by: David Hildenbrand Message-Id: <20210428193408.233706-14-richard.hender...@linaro.org> Signed-off-by: Laurent Vivier ---

[PULL 42/59] linux-user/s390x: Set psw.mask properly for the signal handler

2021-05-18 Thread Laurent Vivier
From: Richard Henderson Note that PSW_ADDR_{64,32} are called PSW_MASK_{EA,BA} in the kernel source. Signed-off-by: Richard Henderson Reviewed-by: David Hildenbrand Message-Id: <20210428193408.233706-11-richard.hender...@linaro.org> Signed-off-by: Laurent Vivier ---

[PULL 39/59] linux-user/s390x: Use tswap_sigset in setup_rt_frame

2021-05-18 Thread Laurent Vivier
From: Richard Henderson Signed-off-by: Richard Henderson Reviewed-by: David Hildenbrand Message-Id: <20210428193408.233706-8-richard.hender...@linaro.org> Signed-off-by: Laurent Vivier --- linux-user/s390x/signal.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git

[PULL 36/59] linux-user/s390x: Remove restore_sigregs return value

2021-05-18 Thread Laurent Vivier
From: Richard Henderson The function cannot fail. Signed-off-by: Richard Henderson Reviewed-by: David Hildenbrand Message-Id: <20210428193408.233706-5-richard.hender...@linaro.org> Signed-off-by: Laurent Vivier --- linux-user/s390x/signal.c | 14 +++--- 1 file changed, 3

[PULL 37/59] linux-user/s390x: Fix trace in restore_regs

2021-05-18 Thread Laurent Vivier
From: Richard Henderson Directly reading sc->regs.psw.addr misses the bswap that may be performed by __get_user. Signed-off-by: Richard Henderson Reviewed-by: David Hildenbrand Message-Id: <20210428193408.233706-6-richard.hender...@linaro.org> Signed-off-by: Laurent Vivier ---

[PULL 34/59] linux-user/s390x: Use uint16_t for signal retcode

2021-05-18 Thread Laurent Vivier
From: Richard Henderson Using the right type simplifies the frame setup. Signed-off-by: Richard Henderson Reviewed-by: David Hildenbrand Message-Id: <20210428193408.233706-3-richard.hender...@linaro.org> Signed-off-by: Laurent Vivier --- linux-user/s390x/signal.c | 9 - 1 file

[PULL 38/59] linux-user/s390x: Fix sigcontext sregs value

2021-05-18 Thread Laurent Vivier
From: Richard Henderson Using the host address of >sregs is incorrect. We need the guest address. Signed-off-by: Richard Henderson Reviewed-by: David Hildenbrand Message-Id: <20210428193408.233706-7-richard.hender...@linaro.org> Signed-off-by: Laurent Vivier --- linux-user/s390x/signal.c |

[PULL 31/59] linux-user/sparc: Implement sparc64 rt signals

2021-05-18 Thread Laurent Vivier
From: Richard Henderson Signed-off-by: Richard Henderson Message-Id: <20210426025334.1168495-25-richard.hender...@linaro.org> Signed-off-by: Laurent Vivier --- linux-user/sparc/signal.c| 27 ++- linux-user/sparc/target_signal.h | 2 ++ 2 files changed, 28

[PULL 32/59] tests/tcg/sparc64: Re-enable linux-test

2021-05-18 Thread Laurent Vivier
From: Richard Henderson It passes now that we support signals properly. Signed-off-by: Richard Henderson Message-Id: <20210426025334.1168495-26-richard.hender...@linaro.org> Signed-off-by: Laurent Vivier --- tests/tcg/sparc64/Makefile.target | 7 +-- 1 file changed, 1 insertion(+), 6

[PULL 51/59] linux-user/alpha: Fix rt sigframe return

2021-05-18 Thread Laurent Vivier
From: Richard Henderson We incorrectly used the offset of the non-rt sigframe. Reviewed-by: Laurent Vivier Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée Message-Id: <20210422230227.314751-2-richard.hender...@linaro.org> Signed-off-by: Laurent

[PULL 33/59] linux-user/s390x: Fix sigframe types

2021-05-18 Thread Laurent Vivier
From: Richard Henderson Noticed via gitlab clang-user job: TESTsignals on s390x ../linux-user/s390x/signal.c:258:9: runtime error: \ 1.84467e+19 is outside the range of representable values of \ type 'unsigned long' Which points to the fact that we were performing a

[PULL 23/59] linux-user/sparc: Split out save_reg_win

2021-05-18 Thread Laurent Vivier
From: Richard Henderson Signed-off-by: Richard Henderson Message-Id: <20210426025334.1168495-17-richard.hender...@linaro.org> Signed-off-by: Laurent Vivier --- linux-user/sparc/signal.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git

Re: [PATCH v5 00/23] Base for adding PowerPC 64-bit instructions

2021-05-18 Thread David Gibson
On Mon, May 17, 2021 at 05:50:02PM -0300, matheus.fe...@eldorado.org.br wrote: > From: Matheus Ferst > > This series provides the basic infrastructure for adding the new 32/64-bit > instructions in Power ISA 3.1 to target/ppc. Well, I had applied them all, but I've now pulled patch 10 and

[PULL 26/59] linux-user/sparc: Add rwin_save to signal frame

2021-05-18 Thread Laurent Vivier
From: Richard Henderson Stub it out to zero, but at least include it. Signed-off-by: Richard Henderson Message-Id: <20210426025334.1168495-20-richard.hender...@linaro.org> Signed-off-by: Laurent Vivier --- linux-user/sparc/signal.c | 8 1 file changed, 8 insertions(+) diff --git

<    1   2   3   4   5   6