diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2016-01-21 14:15:07 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2016-01-21 14:15:07 +0000 |
commit | 1d939a68afe1673441250b495ed2e5f9b568a2fb (patch) | |
tree | 6c33ac9dffea15bf7aa8c2aaa5a9c3eb783a6dc5 /hw/arm | |
parent | 5ce4ff6502fc6ae01a30c3917996c6c41be1d176 (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>
Diffstat (limited to 'hw/arm')
-rw-r--r-- | hw/arm/virt.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |