From 1d939a68afe1673441250b495ed2e5f9b568a2fb Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Thu, 21 Jan 2016 14:15:07 +0000 Subject: 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 --- hw/arm/virt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 05f9087cca..82754dc80d 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); -- cgit v1.2.3