mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
be5ea8ed44
commit
778c3a0619
4 changed files with 7 additions and 7 deletions
|
@ -21,7 +21,6 @@
|
|||
#define QEMU_ARM_CPU_QOM_H
|
||||
|
||||
#include "qemu/cpu.h"
|
||||
#include "cpu.h"
|
||||
|
||||
#define TYPE_ARM_CPU "arm-cpu"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue