Re: [PATCH 0/4] target/ppc: Catch invalid real address accesses

2023-06-29 Thread Nicholas Piggin
On Thu Jun 29, 2023 at 7:05 PM AEST, Cédric Le Goater wrote: > On 6/29/23 10:29, Mark Cave-Ayland wrote: > > On 28/06/2023 08:17, Cédric Le Goater wrote: > > > >> qemu-system-ppc.exe -M mac99,via=pmu -cdrom C:\mac-iso\9.2.2.iso -boot > >> d -L pc-bios > >> crashes Mac OS with an addre

Re: [PATCH 0/4] target/ppc: Catch invalid real address accesses

2023-06-29 Thread Cédric Le Goater
On 6/29/23 10:29, Mark Cave-Ayland wrote: On 28/06/2023 08:17, Cédric Le Goater wrote: qemu-system-ppc.exe -M mac99,via=pmu -cdrom C:\mac-iso\9.2.2.iso -boot d -L pc-bios crashes Mac OS with an address error. (with unpatched and patched builds). Same on Linux. I get an invalid opcode. QEMU 7

Re: [PATCH 0/4] target/ppc: Catch invalid real address accesses

2023-06-29 Thread Mark Cave-Ayland
On 28/06/2023 08:17, Cédric Le Goater wrote: qemu-system-ppc.exe -M mac99,via=pmu -cdrom C:\mac-iso\9.2.2.iso -boot d -L pc-bios crashes Mac OS with an address error. (with unpatched and patched builds). Same on Linux. I get an invalid opcode. QEMU 7.2 work fine though. C. That certainly s

Re: [PATCH 0/4] target/ppc: Catch invalid real address accesses

2023-06-28 Thread Cédric Le Goater
qemu-system-ppc.exe -M mac99,via=pmu -cdrom C:\mac-iso\9.2.2.iso -boot d -L pc-bios crashes Mac OS with an address error. (with unpatched and patched builds). Same on Linux. I get an invalid opcode. QEMU 7.2 work fine though. C. That certainly shouldn't happen, and if it worked in 7.2 then t

Re: [PATCH 0/4] target/ppc: Catch invalid real address accesses

2023-06-28 Thread Cédric Le Goater
On 6/27/23 22:26, Mark Cave-Ayland wrote: On 27/06/2023 13:41, Cédric Le Goater wrote: On 6/27/23 14:05, Howard Spoelstra wrote: On Tue, Jun 27, 2023 at 1:24 PM Mark Cave-Ayland mailto:mark.cave-ayl...@ilande.co.uk>> wrote:     On 27/06/2023 11:28, Howard Spoelstra wrote: > On Tue, Ju

Re: [PATCH 0/4] target/ppc: Catch invalid real address accesses

2023-06-27 Thread Mark Cave-Ayland
On 27/06/2023 13:41, Cédric Le Goater wrote: On 6/27/23 14:05, Howard Spoelstra wrote: On Tue, Jun 27, 2023 at 1:24 PM Mark Cave-Ayland > wrote:     On 27/06/2023 11:28, Howard Spoelstra wrote: > On Tue, Jun 27, 2023 at 10:15 AM Mark Cave-Ayland

Re: [PATCH 0/4] target/ppc: Catch invalid real address accesses

2023-06-27 Thread Mark Cave-Ayland
On 27/06/2023 13:03, Cédric Le Goater wrote: Mac OS 9.2 fails to boot with a popup saying : Sorry, a system error occured. "Sound Manager"    address error To temporarily turn off extensions, restart and hold down the shift key Darwin and Mac OSX loo

Re: [PATCH 0/4] target/ppc: Catch invalid real address accesses

2023-06-27 Thread Cédric Le Goater
On 6/27/23 14:05, Howard Spoelstra wrote: On Tue, Jun 27, 2023 at 1:24 PM Mark Cave-Ayland mailto:mark.cave-ayl...@ilande.co.uk>> wrote: On 27/06/2023 11:28, Howard Spoelstra wrote: > On Tue, Jun 27, 2023 at 10:15 AM Mark Cave-Ayland mailto:mark.cave-ayl...@ilande.co.uk> >

Re: [PATCH 0/4] target/ppc: Catch invalid real address accesses

2023-06-27 Thread Howard Spoelstra
On Tue, Jun 27, 2023 at 1:24 PM Mark Cave-Ayland < mark.cave-ayl...@ilande.co.uk> wrote: > On 27/06/2023 11:28, Howard Spoelstra wrote: > > > On Tue, Jun 27, 2023 at 10:15 AM Mark Cave-Ayland < > mark.cave-ayl...@ilande.co.uk > > > wrote: > > > > On 26/06/

Re: [PATCH 0/4] target/ppc: Catch invalid real address accesses

2023-06-27 Thread Cédric Le Goater
Mac OS 9.2 fails to boot with a popup saying : Sorry, a system error occured. "Sound Manager"    address error To temporarily turn off extensions, restart and hold down the shift key Darwin and Mac OSX look OK. My guess would be that MacOS 9.2 is try

Re: [PATCH 0/4] target/ppc: Catch invalid real address accesses

2023-06-27 Thread Mark Cave-Ayland
On 27/06/2023 11:28, Howard Spoelstra wrote: On Tue, Jun 27, 2023 at 10:15 AM Mark Cave-Ayland > wrote: On 26/06/2023 14:35, Cédric Le Goater wrote: > On 6/23/23 14:37, Cédric Le Goater wrote: >> On 6/23/23 11:10, Peter Maydell wrote: >>

Re: [PATCH 0/4] target/ppc: Catch invalid real address accesses

2023-06-27 Thread Howard Spoelstra
On Tue, Jun 27, 2023 at 10:15 AM Mark Cave-Ayland < mark.cave-ayl...@ilande.co.uk> wrote: > On 26/06/2023 14:35, Cédric Le Goater wrote: > > > On 6/23/23 14:37, Cédric Le Goater wrote: > >> On 6/23/23 11:10, Peter Maydell wrote: > >>> On Fri, 23 Jun 2023 at 09:21, Nicholas Piggin > wrote: >

Re: [PATCH 0/4] target/ppc: Catch invalid real address accesses

2023-06-27 Thread Mark Cave-Ayland
On 26/06/2023 14:35, Cédric Le Goater wrote: On 6/23/23 14:37, Cédric Le Goater wrote: On 6/23/23 11:10, Peter Maydell wrote: On Fri, 23 Jun 2023 at 09:21, Nicholas Piggin wrote: ppc has always silently ignored access to real (physical) addresses with nothing behind it, which can make debug

Re: [PATCH 0/4] target/ppc: Catch invalid real address accesses

2023-06-26 Thread Cédric Le Goater
It seems it broke the "mac99" and  powernv10 machines, using the qemu-ppc-boot images which are mostly buildroot. See below for logs. Adding Mark for further testing on Mac OS. Mac OS 9.2 fails to boot with a popup saying : Sorry, a system error occured. "Soun

Re: [PATCH 0/4] target/ppc: Catch invalid real address accesses

2023-06-26 Thread Nicholas Piggin
On Mon Jun 26, 2023 at 11:35 PM AEST, Cédric Le Goater wrote: > On 6/23/23 14:37, Cédric Le Goater wrote: > > On 6/23/23 11:10, Peter Maydell wrote: > >> On Fri, 23 Jun 2023 at 09:21, Nicholas Piggin wrote: > >>> > >>> ppc has always silently ignored access to real (physical) addresses > >>> with

Re: [PATCH 0/4] target/ppc: Catch invalid real address accesses

2023-06-26 Thread Cédric Le Goater
On 6/23/23 14:37, Cédric Le Goater wrote: On 6/23/23 11:10, Peter Maydell wrote: On Fri, 23 Jun 2023 at 09:21, Nicholas Piggin wrote: ppc has always silently ignored access to real (physical) addresses with nothing behind it, which can make debugging difficult at times. It looks like the way

Re: [PATCH 0/4] target/ppc: Catch invalid real address accesses

2023-06-25 Thread Nicholas Piggin
On Fri Jun 23, 2023 at 7:10 PM AEST, Peter Maydell wrote: > On Fri, 23 Jun 2023 at 09:21, Nicholas Piggin wrote: > > > > ppc has always silently ignored access to real (physical) addresses > > with nothing behind it, which can make debugging difficult at times. > > > > It looks like the way to han

Re: [PATCH 0/4] target/ppc: Catch invalid real address accesses

2023-06-24 Thread BALATON Zoltan
On Sat, 24 Jun 2023, Philippe Mathieu-Daudé wrote: On 23/6/23 14:37, Cédric Le Goater wrote: On 6/23/23 11:10, Peter Maydell wrote: On Fri, 23 Jun 2023 at 09:21, Nicholas Piggin wrote: ppc has always silently ignored access to real (physical) addresses with nothing behind it, which can make

Re: [PATCH 0/4] target/ppc: Catch invalid real address accesses

2023-06-23 Thread Philippe Mathieu-Daudé
On 23/6/23 14:37, Cédric Le Goater wrote: On 6/23/23 11:10, Peter Maydell wrote: On Fri, 23 Jun 2023 at 09:21, Nicholas Piggin wrote: ppc has always silently ignored access to real (physical) addresses with nothing behind it, which can make debugging difficult at times. It looks like the way

Re: [PATCH 0/4] target/ppc: Catch invalid real address accesses

2023-06-23 Thread Cédric Le Goater
On 6/23/23 11:10, Peter Maydell wrote: On Fri, 23 Jun 2023 at 09:21, Nicholas Piggin wrote: ppc has always silently ignored access to real (physical) addresses with nothing behind it, which can make debugging difficult at times. It looks like the way to handle this is implement the transactio

Re: [PATCH 0/4] target/ppc: Catch invalid real address accesses

2023-06-23 Thread Peter Maydell
On Fri, 23 Jun 2023 at 09:21, Nicholas Piggin wrote: > > ppc has always silently ignored access to real (physical) addresses > with nothing behind it, which can make debugging difficult at times. > > It looks like the way to handle this is implement the transaction > failed call, which most target