From: Peter Maydell Date: Thu, 21 Jan 2016 14:15:07 +0000 (+0000) Subject: hw/arm/virt: Wire up memory region to CPUs explicitly X-Git-Tag: v2.6.0-rc0~210^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1d939a68afe1673441250b495ed2e5f9b568a2fb;p=thirdparty%2Fqemu.git hw/arm/virt: Wire up memory region to CPUs explicitly Wire up the system memory region to the CPUs explicitly by setting the QOM property. This doesn't change anything over letting it default, but will be needed for adding a secure memory region later. Signed-off-by: Peter Maydell Reviewed-by: Edgar E. Iglesias Acked-by: Edgar E. Iglesias --- diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 05f9087ccae..82754dc80d9 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -1093,6 +1093,9 @@ static void machvirt_init(MachineState *machine) "reset-cbar", &error_abort); } + object_property_set_link(cpuobj, OBJECT(sysmem), "memory", + &error_abort); + object_property_set_bool(cpuobj, true, "realized", NULL); } g_strfreev(cpustr);