aboutsummaryrefslogtreecommitdiff
path: root/hw/arm
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2016-01-21 14:15:07 +0000
committerPeter Maydell <peter.maydell@linaro.org>2016-01-21 14:15:07 +0000
commit1d939a68afe1673441250b495ed2e5f9b568a2fb (patch)
tree6c33ac9dffea15bf7aa8c2aaa5a9c3eb783a6dc5 /hw/arm
parent5ce4ff6502fc6ae01a30c3917996c6c41be1d176 (diff)
downloadqemu-1d939a68afe1673441250b495ed2e5f9b568a2fb.zip
qemu-1d939a68afe1673441250b495ed2e5f9b568a2fb.tar.gz
qemu-1d939a68afe1673441250b495ed2e5f9b568a2fb.tar.bz2
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/arm')
-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);