@@ -1885,11 +1885,15 @@ static void memory_map_init(void)
system_memory = g_malloc(sizeof(*system_memory));
memory_region_init(system_memory, NULL, "system", UINT64_MAX);
+ object_property_add_child(qdev_get_machine(), "sysmem",
+ OBJECT(system_memory), &error_abort);
address_space_init(&address_space_memory, system_memory, "memory");
system_io = g_malloc(sizeof(*system_io));
memory_region_init_io(system_io, NULL, &unassigned_io_ops, NULL, "io",
65536);
+ object_property_add_child(qdev_get_machine(), "sysio",
+ OBJECT(system_io), &error_abort);
address_space_init(&address_space_io, system_io, "I/O");
memory_listener_register(&core_memory_listener, &address_space_memory);
Parent the root MemoryRegions for Memory and IO to the machine. This gives them a QOM path. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> --- exec.c | 4 ++++ 1 file changed, 4 insertions(+)