diff options
author | Avi Kivity <avi@redhat.com> | 2011-12-08 15:57:34 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-12-20 14:14:06 +0200 |
commit | 62ec4832ea1093b20a8a0893a016a00ef8145496 (patch) | |
tree | 21c76f42e903ebf5ca1177cbc194c72a6e99fd7a /hw/sysbus.c | |
parent | ab0115e10ca2221a7844ac5fd18842976eec3b2b (diff) | |
download | qemu-62ec4832ea1093b20a8a0893a016a00ef8145496.zip qemu-62ec4832ea1093b20a8a0893a016a00ef8145496.tar.gz qemu-62ec4832ea1093b20a8a0893a016a00ef8145496.tar.bz2 |
sysbus: add sysbus_address_space()
Given a bus device, retrieves the memory address space for its bus.
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw/sysbus.c')
-rw-r--r-- | hw/sysbus.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/sysbus.c b/hw/sysbus.c index 81a57bd..7016903 100644 --- a/hw/sysbus.c +++ b/hw/sysbus.c @@ -261,3 +261,8 @@ void sysbus_del_io(SysBusDevice *dev, MemoryRegion *mem) { memory_region_del_subregion(get_system_io(), mem); } + +MemoryRegion *sysbus_address_space(SysBusDevice *dev) +{ + return get_system_memory(); +} |