qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v2 2/3] hw/mips/malta: Set PIIX4 IRQ routes in embedded bootl


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v2 2/3] hw/mips/malta: Set PIIX4 IRQ routes in embedded bootloader
Date: Mon, 21 Nov 2022 23:43:50 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.0

On 21/11/22 16:34, Bernhard Beschow wrote:


Am 27. Oktober 2022 20:47:19 UTC schrieb "Philippe Mathieu-Daudé" 
<philmd@linaro.org>:
Linux kernel expects the northbridge & southbridge chipsets
configured by the BIOS firmware. We emulate that by writing
a tiny bootloader code in write_bootloader().

Upon introduction in commit 5c2b87e34d ("PIIX4 support"),
the PIIX4 configuration space included values specific to
the Malta board.

Set the Malta-specific IRQ routing values in the embedded
bootloader, so the next commit can remove the Malta specific
bits from the PIIX4 PCI-ISA bridge and make it generic
(matching the real hardware).

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
FIXME: Missing the nanoMIPS counter-part!

Who will be taking care of this? I have absolutely no clue how the 
write_bootloader functions work, so I don't see how to fix it.

Oh actually I wrote that and tested it but context switched and forgot
about it... I'll look back when I get some time, probably around the
release.

Couldn't we just do it like in pegasos2_init() where the registers are 
initialized by QEMU directly if there is no bootloader binary configured? I 
could do that.
I rather mimic bootloaders... maybe a matter of taste?

Regards,

Phil.



reply via email to

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