qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PULL 14/28] mips_malta: move i8259 initialization after pi


From: Avi Kivity
Subject: [Qemu-devel] [PULL 14/28] mips_malta: move i8259 initialization after piix4 initialization
Date: Mon, 12 Sep 2011 13:50:52 +0300

i8259 is an ISA device; and the ISA bus is supplied by piix4.  Later patches
make this dependency explicit.

Signed-off-by: Avi Kivity <address@hidden>
---
 hw/mips_malta.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/hw/mips_malta.c b/hw/mips_malta.c
index 0110daa..172f74e 100644
--- a/hw/mips_malta.c
+++ b/hw/mips_malta.c
@@ -928,10 +928,6 @@ void mips_malta_init (ram_addr_t ram_size,
     cpu_mips_irq_init_cpu(env);
     cpu_mips_clock_init(env);
 
-    /* Interrupt controller */
-    /* The 8259 is attached to the MIPS CPU INT0 pin, ie interrupt 2 */
-    i8259 = i8259_init(env->irq[2]);
-
     /* Northbridge */
     pci_bus = gt64120_register(i8259);
 
@@ -939,6 +935,11 @@ void mips_malta_init (ram_addr_t ram_size,
     ide_drive_get(hd, MAX_IDE_BUS);
 
     piix4_devfn = piix4_init(pci_bus, 80);
+
+    /* Interrupt controller */
+    /* The 8259 is attached to the MIPS CPU INT0 pin, ie interrupt 2 */
+    i8259 = i8259_init(env->irq[2]);
+
     isa_bus_irqs(i8259);
     pci_piix4_ide_init(pci_bus, hd, piix4_devfn + 1);
     usb_uhci_piix4_init(pci_bus, piix4_devfn + 2);
-- 
1.7.6.1




reply via email to

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