Re: [PATCH] linux-user/hppa: Fix segfaults on page zero

2022-07-12 Thread Philippe Mathieu-Daudé via
On 7/7/22 21:45, Helge Deller wrote: This program: int main(void) { asm("bv %r0(%r0)"); return 0; } produces on real hardware the expected segfault: --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x3} --- +++ killed by SIGSEGV +++ Segmentation fault But when run on linux-use

[PATCH] linux-user/hppa: Fix segfaults on page zero

2022-07-07 Thread Helge Deller
This program: int main(void) { asm("bv %r0(%r0)"); return 0; } produces on real hardware the expected segfault: --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x3} --- +++ killed by SIGSEGV +++ Segmentation fault But when run on linux-user you get instead internal qemu errors: