qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-ppc] R128 interrupts


From: BALATON Zoltan
Subject: Re: [Qemu-ppc] R128 interrupts
Date: Thu, 8 Aug 2019 22:18:29 +0200 (CEST)
User-agent: Alpine 2.21.9999 (BSF 287 2018-06-16)

On Thu, 8 Aug 2019, Jd Lyons wrote:
Thanks Howard, I don’t see anything unexpected there, I’m 99.999% sure the lack of a mapped interrupt is what is causing the “NDRV’ to abort. We may run into other troubles later, but at least we know the likely cause of this issue.

OK we can use this patch to have OpenBIOS add the interrupts property:

diff --git a/hw/display/ati.c b/hw/display/ati.c
index 84961d193f..d89153a826 100644
--- a/hw/display/ati.c
+++ b/hw/display/ati.c
@@ -902,6 +910,9 @@ static void ati_vga_realize(PCIDevice *dev, Error **errp)
     pci_register_bar(dev, 0, PCI_BASE_ADDRESS_MEM_PREFETCH, &vga->vram);
     pci_register_bar(dev, 1, PCI_BASE_ADDRESS_SPACE_IO, &s->io);
     pci_register_bar(dev, 2, PCI_BASE_ADDRESS_SPACE_MEMORY, &s->mm);
+
+    /* interrupt not yet emulated but MacOS driver needs it to load */
+    dev->config[PCI_INTERRUPT_PIN] = 1;
 }

which makes the NDRV not abort but do you get picture with OS X then and is it now using ati-vga framebuffer? At least with MacOS 9 it now seems to hang (maybe waiting for an interrupt or missing something else)? I'm also not sure what else that may break, haven't tested with other OSes but maybe those don't use the interrupt.

Regards,
BALATON Zoltan

reply via email to

[Prev in Thread] Current Thread [Next in Thread]