[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/2] target-arm: Change cpu_arm_init() return ty
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH 1/2] target-arm: Change cpu_arm_init() return type to ARMCPU |
Date: |
Mon, 23 Apr 2012 18:00:34 +0100 |
On 20 April 2012 18:39, Andreas Färber <address@hidden> wrote:
> 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.
So is the plan that all boards should eventually move over
to calling cpu_arm_init() rather than cpu_init() ?
-- PMM