hw/arm: Fix Integrator/CM initialization
commite9d9ee234f852026d58b275d89a0350cb9ddbc01
authorJakub Jermar <jakub@jermar.eu>
Tue, 4 Oct 2016 12:28:08 +0000 (4 13:28 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 4 Oct 2016 12:28:08 +0000 (4 13:28 +0100)
tree570b1a03c93eceb6f15aceb46d9389047bd120e2
parent0c74e95bf87f9fb2187e7b1baa427a7b74d69ccd
hw/arm: Fix Integrator/CM initialization

Initialization of a class instance cannot depend on its own properties
as these are not yet set.  Move parts of integratorcm_init() that depend
on the "memsz" property to the newly added integratorcm_realize().

This fixes: https://bugs.launchpad.net/qemu/+bug/1624726

Signed-off-by: Jakub Jermar <jakub@jermar.eu>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/integratorcp.c