target-arm: Change cpu_arm_init() return type to ARMCPU
commit778c3a0619f3b47f94e566ca4f656aabe5f4b3d6
authorAndreas Färber <afaerber@suse.de>
Fri, 20 Apr 2012 07:39:14 +0000 (20 07:39 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 27 Apr 2012 11:04:44 +0000 (27 11:04 +0000)
tree62657bfb866880be18316425819a730e8228ad90
parentbe5ea8ed4481f0ffa4ea0f7ba13e465701536001
target-arm: Change cpu_arm_init() return type to ARMCPU

Make cpu_arm_init() return a QOM ARMCPU, so that we don't need to
obtain an ARMCPU through arm_env_get_cpu() in machine init code.
This requires to adjust the inclusion site of cpu-qom.h and in turn,
forward-looking, to homogenize its include order.

cpu_init() must still return a CPUARMState for backwards and
cross-target compatibility, so adjust the cpu_init macro.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/cpu-qom.h
target-arm/cpu.c
target-arm/cpu.h
target-arm/helper.c