aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2015-12-14 17:36:22 +0000
committerPeter Maydell <peter.maydell@linaro.org>2016-01-08 13:32:55 +0000
commit6d1fb0a188e8422e8634fa222142d5f2111b58dc (patch)
treea91dbb082fb054f4698b9c28ffde542add34af89
parent3326c01cfa6d5e12a72cb02f3d375a8bbb8cbb8b (diff)
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 <peter.maydell@linaro.org> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
-rw-r--r--hw/arm/virt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index acc1fcbdd1..0cfc17af98 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -1078,6 +1078,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);