diff options
author | Richard Henderson <rth@twiddle.net> | 2011-08-10 15:28:11 -0700 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-09-25 14:58:35 +0300 |
commit | c2d0d01202e07f87bf17ec9a9f43232c982aa1c2 (patch) | |
tree | 0bee5a325c0abea6c0b97aed121d5bfa0641bbf9 /hw/isa-bus.c | |
parent | e11d64390ba076d8a293e422dad3027f9adb9430 (diff) |
isa: Pass i/o address space to isa_bus_new
Not used yet, but at least we're provided with the correct region.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw/isa-bus.c')
-rw-r--r-- | hw/isa-bus.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/isa-bus.c b/hw/isa-bus.c index 1cb497f5ca..d06750589b 100644 --- a/hw/isa-bus.c +++ b/hw/isa-bus.c @@ -24,6 +24,7 @@ struct ISABus { BusState qbus; + MemoryRegion *address_space_io; qemu_irq *irqs; }; static ISABus *isabus; @@ -39,7 +40,7 @@ static struct BusInfo isa_bus_info = { .get_fw_dev_path = isabus_get_fw_dev_path, }; -ISABus *isa_bus_new(DeviceState *dev) +ISABus *isa_bus_new(DeviceState *dev, MemoryRegion *address_space_io) { if (isabus) { fprintf(stderr, "Can't create a second ISA bus\n"); @@ -51,6 +52,7 @@ ISABus *isa_bus_new(DeviceState *dev) } isabus = FROM_QBUS(ISABus, qbus_create(&isa_bus_info, dev, NULL)); + isabus->address_space_io = address_space_io; return isabus; } |