mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
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>
This commit is contained in:
parent
ab0115e10c
commit
62ec4832ea
2 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue