summaryrefslogtreecommitdiffstats
path: root/hw/isa-bus.c
diff options
context:
space:
mode:
authorAvi Kivity2011-08-15 16:17:35 +0200
committerAnthony Liguori2011-08-22 17:47:49 +0200
commitc839adec884ed601204d527f021bf638e879a61f (patch)
treeb27ff78a57b74422461cc049ef3c4965f74153c2 /hw/isa-bus.c
parentsysbus: remove sysbus_init_mmio_cb() (diff)
downloadqemu-c839adec884ed601204d527f021bf638e879a61f.tar.gz
qemu-c839adec884ed601204d527f021bf638e879a61f.tar.xz
qemu-c839adec884ed601204d527f021bf638e879a61f.zip
isa: add isa_address_space()
A helper that returns the address space used by ISA devices. Useful for getting rid of isa_mem_base, multiple ISA buses, or ISA buses behind bridges. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/isa-bus.c')
-rw-r--r--hw/isa-bus.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/isa-bus.c b/hw/isa-bus.c
index 27655436a0..1cb497f5ca 100644
--- a/hw/isa-bus.c
+++ b/hw/isa-bus.c
@@ -20,6 +20,7 @@
#include "monitor.h"
#include "sysbus.h"
#include "isa.h"
+#include "exec-memory.h"
struct ISABus {
BusState qbus;
@@ -202,4 +203,9 @@ static char *isabus_get_fw_dev_path(DeviceState *dev)
return strdup(path);
}
+MemoryRegion *isa_address_space(ISADevice *dev)
+{
+ return get_system_memory();
+}
+
device_init(isabus_register_devices)