Re: [PATCH] linux-user/arm: Reset CPSR_E when entering a signal handler

2020-05-15 Thread Amanieu d'Antras
On Fri, May 15, 2020 at 7:34 PM Peter Maydell wrote: > > On Thu, 7 May 2020 at 21:25, Amanieu d'Antras wrote: > > > > This fixes signal handlers running with the wrong endianness if the > > interrupted code used SETEND to dynamically switch endianness. > >

[PATCH v2] linux-user/arm: Reset CPSR_E when entering a signal handler

2020-05-11 Thread Amanieu d'Antras
This fixes signal handlers running with the wrong endianness if the interrupted code used SETEND to dynamically switch endianness. Signed-off-by: Amanieu d'Antras --- linux-user/arm/signal.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/linux-user/arm/signa

[PATCH] linux-user/arm: Reset CPSR_E when entering a signal handler

2020-05-07 Thread Amanieu d'Antras
This fixes signal handlers running with the wrong endianness if the interrupted code used SETEND to dynamically switch endianness. Signed-off-by: Amanieu d'Antras --- linux-user/arm/signal.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/linux-user/arm/signa

[PATCH] linux-user/riscv: Fix target_ucontext and target_sigcontext

2020-04-27 Thread Amanieu d'Antras
These now match the field layout used by the kernel. Signed-off-by: Amanieu d'Antras --- linux-user/riscv/signal.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/linux-user/riscv/signal.c b/linux-user/riscv/signal.c index 83ecc6f799..2b15e32a7b 100644 --- a/linux

[Qemu-devel] [PATCH] linux-user: Fix fault address truncation AArch64

2014-10-09 Thread Amanieu d'Antras
On AArch64 the si_addr field of siginfo_t is truncated to 32 bits because the fault address passes through an uint32_t variable. This is fixed by changing the variable to uint64_t. Signed-off-by: Amanieu d'Antras --- linux-user/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[Qemu-devel] [Bug 1287195] [NEW] validate_guest_space incorrectly enabled on AArch64

2014-03-03 Thread Amanieu d'Antras
Public bug reported: When running linux-user targetting AArch64, validate_guest_space() in elfload.c reserves space in the guest address space for the ARM commpage. Since there is no commpage on AArch64, this function should be disable on that target. ** Affects: qemu Importance: Undecided