[PATCH v2] mips: fix abort on integer overflow

2023-09-28 Thread Mikulas Patocka
On Thu, 28 Sep 2023, Richard Henderson wrote: > Just call force_sig_fault directly. > > > r~ OK. Here I'm resending it. Mikulas From: Mikulas Patocka Qemu mips userspace emulation crashes with "qemu: unhandled CPU exception 0x15 - aborting" when on

[PATCH] target/sh4: fix crashes on signal delivery

2023-09-28 Thread Mikulas Patocka
the instruction in the delay slot. We must save the address of the previous instruction. Signed-off-by: Mikulas Patocka Cc: qemu-sta...@nongnu.org --- linux-user/sh4/signal.c |8 1 file changed, 8 insertions(+) Index: qemu/linux

[PATCH] mips: fix abort on integer overflow

2023-09-24 Thread Mikulas Patocka
Qemu mips userspace emulation crashes with "qemu: unhandled CPU exception 0x15 - aborting" when one of the integer arithmetic instructions detects an overflow. This patch fixes it so that it delivers SIGFPE with FPE_INTOVF instead. Signed-off-by: Mikulas Patocka Cc: qemu-sta...@

[PATCH v2] qemu-hppa: lock both words of function descriptor

2023-09-16 Thread Mikulas Patocka
On Sat, 16 Sep 2023, Helge Deller wrote: > On 9/16/23 15:52, Mikulas Patocka wrote: > > The code in setup_rt_frame reads two words at haddr, but locks only one. > > This patch fixes it to lock both. > > > > Signed-off-by: Mikulas Patocka > > > > --

[PATCH] target/hppa: clear the PSW 'N' bit when delivering signals

2023-09-16 Thread Mikulas Patocka
he 'N' flag is set, the flag remains set at the beginning of the signal handler and the first instruction of the signal handler is skipped. Signed-off-by: Mikulas Patocka --- linux-user/hppa/signal.c |1 + 1 file changed, 1 insertion(+) Index: qemu/linux-user/hppa/signal.c ==

[PATCH] target/hppa: lock both words of function descriptor

2023-09-16 Thread Mikulas Patocka
The code in setup_rt_frame reads two words at haddr, but locks only one. This patch fixes it to lock both. Signed-off-by: Mikulas Patocka --- linux-user/hppa/signal.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) Index: qemu/linux-user/hppa/signal.c