qemu-ppc
[Top][All Lists]
Advanced

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

Re: hw/ppc/mac_newworld: Problem with Uninorth IRQ lines


From: Mark Cave-Ayland
Subject: Re: hw/ppc/mac_newworld: Problem with Uninorth IRQ lines
Date: Wed, 1 Mar 2023 12:24:54 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0

On 21/02/2023 13:44, Philippe Mathieu-Daudé wrote:

Hi Mark,

The mac99 machines use the same PIC input IRQs for the Uninorth
output IRQs:

379     if (PPC_INPUT(env) != PPC_FLAGS_INPUT_970) {
380         /* Uninorth AGP bus */
381         for (i = 0; i < 4; i++) {
382             qdev_connect_gpio_out(uninorth_agp_dev, i,
383                                   qdev_get_gpio_in(pic_dev, 0x1b + i));
384         }
385
386         /* Uninorth internal bus */
387         for (i = 0; i < 4; i++) {
388             qdev_connect_gpio_out(uninorth_internal_dev, i,
389                                   qdev_get_gpio_in(pic_dev, 0x1b + i));
390         }
391     }

Did you mean to use an OR gate here?

Hi Phil,

These are separate PCI buses so I suspect they should be wired up with different IRQs, but this wiring has been the same ever since the code was introduced. I think it should be possible to dig the values out from a suitable device tree but it's not something I've looked at in any detail.


ATB,

Mark.



reply via email to

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