aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2016-01-14 12:54:41 +0000
committerPeter Maydell <peter.maydell@linaro.org>2016-01-14 12:54:41 +0000
commit081d6a02efe276b338661584d4846da0795bb20f (patch)
tree4b6580a872effc9f76847cd924dfd0678b7ca8fe
parent0ec42e06b720a177a7f0690ac02b29f99a04106e (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> Acked-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 fd52b76882..c9addad358 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -1092,6 +1092,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);