Am 23.04.2012 19:00, schrieb Peter Maydell: > On 20 April 2012 18:39, Andreas Färber <afaer...@suse.de> 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() ?
Iff they need ARMCPU, they need to call an ARM-specific function. Currently not all do, so there's no need for mass conversions; since cpu_copy() still needs the cpu_init alias there'd be no benefit either. Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg