diff options
author | David Gibson | 2011-04-05 07:12:09 +0200 |
---|---|---|
committer | Alexander Graf | 2011-04-08 11:32:21 +0200 |
commit | c7a5c0c9280c2ddaa875e3cafb3df16a96af809c (patch) | |
tree | 5530370b8dab8bd65e177a2bc7a1fdfe854d8b57 /hw/spapr.h | |
parent | spapr_vscsi: Set uninitialized variable (diff) | |
download | qemu-c7a5c0c9280c2ddaa875e3cafb3df16a96af809c.tar.gz qemu-c7a5c0c9280c2ddaa875e3cafb3df16a96af809c.tar.xz qemu-c7a5c0c9280c2ddaa875e3cafb3df16a96af809c.zip |
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/spapr.h')
0 files changed, 0 insertions, 0 deletions