On 02/10/2021 15:52, BALATON Zoltan wrote:
Hello,
This is still the same patch I'm draggging around for more than 3 years rebased to curent version and is still needed to boot MorphOS on QEMU mac99. People doing that so far used my patched version from 3 years ago (see http://zero.eik.bme.hu/~balaton/qemu/amiga/#morphos ) but it has stopped working with the recent escc reset changes so now MorphOS cannot be booted on QEMU mac99. It would be nice if QEMU 6.2 would come with an OpenBIOS that can boot MorphOS as that would avoid confusion and inconvenience for users with the upcoming QEMU 6.2 version to either having to get another patched OpenBIOS binary or change their scripts to use pegasos2 instead (which may nave other yet undiscovered problems when they've already learned to live with the mac99 version). So unless correct handling of both PCI busses can be fixed in OpenBIOS for QEMU 6.2, please consider this work around until that finally happens. If this breaks any of your test cases I'd try to look at that and fix it but I don't have time to make large changes in OpenBIOS such as trying to implement multiple PCI buses (tried that before and it was beyond the effort I could invest in this; we could dig up the details in the list archives but I think calling ob_pci_init with anything than bus == 0 does not work).
IIRC the last time you posted the patch my comment was that I would be happy to take the patch as-is, as long as the extra PCI bus is added to the QEMU mac99 machine beforehand. Device trees shouldn't be advertising devices that don't exist within the machine, since the existence of a device node will indicate that guest OSs should try to probe for it and the behaviour when the device doesn't exist is undefined.
ATB,
Mark.