From c839adec884ed601204d527f021bf638e879a61f Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Mon, 15 Aug 2011 17:17:35 +0300 Subject: 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 Signed-off-by: Anthony Liguori --- hw/isa-bus.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hw/isa-bus.c') 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) -- cgit v1.2.3