summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2016-01-21 14:15:07 +0000
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:28:26 -0600
commit28810ae278677e0f7ad63a38b8366e5b031b735a (patch)
tree987ee60094dabc7a0c409b8dd55e3a5c2f7d39ba /hw
parenteae4082d7184215153894a1b900573aeddb0f8b2 (diff)
downloadhqemu-28810ae278677e0f7ad63a38b8366e5b031b735a.zip
hqemu-28810ae278677e0f7ad63a38b8366e5b031b735a.tar.gz
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>
Diffstat (limited to 'hw')
-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 05f9087..82754dc 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);
OpenPOWER on IntegriCloud