Re: [PATCH v3 1/2] linux-user/s390x: signal with SIGFPE on compare-and-trap

2021-07-09 Thread Richard Henderson
On 7/9/21 9:04 AM, Jonathan Albrecht wrote: Currently when a compare-and-trap instruction is executed, qemu will always raise a SIGILL signal. On real hardware, a SIGFPE is raised. Change the PGM_DATA case in cpu_loop to follow the behavior in linux kernel /arch/s390/kernel/traps.c. * Only rai

[PATCH v3 1/2] linux-user/s390x: signal with SIGFPE on compare-and-trap

2021-07-09 Thread Jonathan Albrecht
Currently when a compare-and-trap instruction is executed, qemu will always raise a SIGILL signal. On real hardware, a SIGFPE is raised. Change the PGM_DATA case in cpu_loop to follow the behavior in linux kernel /arch/s390/kernel/traps.c. * Only raise SIGILL if DXC == 0 * If DXC matches a non-s