diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2011-04-05 15:12:09 +1000 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2011-04-08 11:32:21 +0200 |
commit | c7a5c0c9280c2ddaa875e3cafb3df16a96af809c (patch) | |
tree | 5530370b8dab8bd65e177a2bc7a1fdfe854d8b57 /hw/xics.h | |
parent | 8804f57b531e4887ad9521c9abb9e0bbbcb1dd4e (diff) |
pseries: Abolish envs array
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, there are a number of places which assume that the cpu's
cpu_index field is equal to its index in this array. This is true in
practice, because cpu_index values are just assigned sequentially, but
it's conceptually incorrect and may not always be true.
Therefore, this patch abolishes the envs array, and explicitly uses the
generic cpu linked list and cpu_index values throughout.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/xics.h')
-rw-r--r-- | hw/xics.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -33,7 +33,6 @@ struct icp_state; qemu_irq xics_find_qirq(struct icp_state *icp, int irq); -struct icp_state *xics_system_init(int nr_servers, CPUState *servers[], - int nr_irqs); +struct icp_state *xics_system_init(int nr_irqs); #endif /* __XICS_H__ */ |