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

2022-07-18 Thread Laurent Vivier
Le 18/07/2022 à 18:40, Helge Deller a écrit : This program: int main(void) { asm("bv %r0(%r0)"); return 0; } produces on real hppa hardware the expected segfault: SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x3} --- killed by SIGSEGV +++ Segmentation fault But

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

2022-07-18 Thread Peter Maydell
On Mon, 18 Jul 2022 at 17:44, Helge Deller wrote: > > This program: > > int main(void) { asm("bv %r0(%r0)"); return 0; } > > produces on real hppa hardware the expected segfault: > > SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x3} --- > killed by SIGSEGV +++ > Segmenta

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

2022-07-18 Thread Helge Deller
This program: int main(void) { asm("bv %r0(%r0)"); return 0; } produces on real hppa 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