Revision be35694d hw/sysbus.c
b/hw/sysbus.c | ||
---|---|---|
256 | 256 |
|
257 | 257 |
return strdup(path); |
258 | 258 |
} |
259 |
|
|
260 |
void sysbus_add_memory(SysBusDevice *dev, target_phys_addr_t addr, |
|
261 |
MemoryRegion *mem) |
|
262 |
{ |
|
263 |
memory_region_add_subregion(get_system_memory(), addr, mem); |
|
264 |
} |
|
265 |
|
|
266 |
void sysbus_del_memory(SysBusDevice *dev, MemoryRegion *mem) |
|
267 |
{ |
|
268 |
memory_region_del_subregion(get_system_memory(), mem); |
|
269 |
} |
|
270 |
|
|
271 |
void sysbus_add_io(SysBusDevice *dev, target_phys_addr_t addr, |
|
272 |
MemoryRegion *mem) |
|
273 |
{ |
|
274 |
memory_region_add_subregion(get_system_io(), addr, mem); |
|
275 |
} |
|
276 |
|
|
277 |
void sysbus_del_io(SysBusDevice *dev, MemoryRegion *mem) |
|
278 |
{ |
|
279 |
memory_region_del_subregion(get_system_io(), mem); |
|
280 |
} |
Also available in: Unified diff