[Qemu-devel] Re: [PATCH 1/3] pseries: Abolish envs array

2011-04-05 Thread Alexander Graf
On 04/05/2011 03:16 PM, David Gibson wrote: On Tue, Apr 05, 2011 at 10:05:12AM +0200, Alexander Graf wrote: On 05.04.2011, at 07:12, David Gibson wrote: [snip] +struct icp_state *xics_system_init(int nr_irqs) { +CPUState *env; +int max_server_num; int i; struct icp_state *icp

[Qemu-devel] Re: [PATCH 1/3] pseries: Abolish envs array

2011-04-05 Thread David Gibson
On Tue, Apr 05, 2011 at 10:05:12AM +0200, Alexander Graf wrote: > On 05.04.2011, at 07:12, David Gibson wrote: [snip] > > +struct icp_state *xics_system_init(int nr_irqs) > > { > > +CPUState *env; > > +int max_server_num; > > int i; > > struct icp_state *icp; > > struct ics_stat

[Qemu-devel] Re: [PATCH 1/3] pseries: Abolish envs array

2011-04-05 Thread Alexander Graf
On 05.04.2011, at 07:12, David Gibson wrote: > Currently the pseries machine init code builds up an array, envs, of > CPUState pointers for all the cpus in the system. This is kind of > pointless, given the generic code already has a perfectly good linked list > of the cpus. > > In addition, th