Patchwork [Bug,611646,NEW] isa bus not working

login
register
mail settings
Submitter Markus Armbruster
Date Aug. 2, 2010, 11:02 a.m.
Message ID <m3hbjduvkh.fsf@blackfin.pond.sub.org>
Download mbox | patch
Permalink /patch/60530/
State New
Headers show

Comments

Markus Armbruster - Aug. 2, 2010, 11:02 a.m.
Isaku Yamahata <yamahata@valinux.co.jp> writes:

> Sorry for that.
> Does the attached patch fix it?

As far as I can see, yes.

I'd prefer:


Matter of taste, so you get to pick.

Patch

diff --git a/hw/pc_piix.c b/hw/pc_piix.c
index 812ddfd..34c65d5 100644
--- a/hw/pc_piix.c
+++ b/hw/pc_piix.c
@@ -103,6 +103,7 @@  static void pc_init1(ram_addr_t ram_size,
         pci_bus = i440fx_init(&i440fx_state, &piix3_devfn, isa_irq, ram_size);
     } else {
         pci_bus = NULL;
+        i440fx_state = NULL;
         isa_bus_new(NULL);
     }
     isa_bus_irqs(isa_irq);