]> git.proxmox.com Git - mirror_qemu.git/commit
pseries: Rearrange versioned machine type code
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 3 Dec 2015 06:34:10 +0000 (17:34 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 11 Jan 2016 04:29:04 +0000 (15:29 +1100)
commit1c5f29bbc8dac5f5d109a4aaa761e0dbb9eeea8d
tree2a4dafb63ed680e6f77b8bfd5997e24fcb4f66b6
parentaec39c5349acc4b33711288abbbaf747e21b04b7
pseries: Rearrange versioned machine type code

hw/ppc/spapr.c has a number of definitions related to the various versioned
machine types ("pseries-2.1" .. "pseries-2.5") it defines.  These are
mostly arranged by type of function first, then machine version second, and
it's not consistent about whether it goes in increasing or decreasing
version order.

This rearranges the code to keep all the definitions for a particular
machine version together, and arrange then consistently in order most
recent to least recent.

This brings us closer to matching the way PC does things, and makes later
cleanups easier to follow.

Apart from adding some comments marking each section, this is a pure
mechanical rearrangement with no semantic changes.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
hw/ppc/spapr.c