[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [RFC 2/9] spapr: Rearrange versioned machine type code
From: |
Thomas Huth |
Subject: |
Re: [Qemu-ppc] [RFC 2/9] spapr: Rearrange versioned machine type code |
Date: |
Mon, 30 Nov 2015 11:27:49 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
On 30/11/15 09:51, David Gibson wrote:
> 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, 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 <address@hidden>
> ---
> hw/ppc/spapr.c | 180
> +++++++++++++++++++++++++++++++--------------------------
> 1 file changed, 98 insertions(+), 82 deletions(-)
Good idea.
Reviewed-by: Thomas Huth <address@hidden>
- Re: [Qemu-ppc] [RFC 9/9] spapr: Add pseries-2.6 machine type, (continued)
- [Qemu-ppc] [RFC 7/9] spapr: Remove versions from mc->desc, David Gibson, 2015/11/30
- [Qemu-ppc] [RFC 3/9] spapr: DEFINE_SPAPR_MACHINE, David Gibson, 2015/11/30
- [Qemu-ppc] [RFC 8/9] spapr: Improve setting of default machine version, David Gibson, 2015/11/30
- [Qemu-ppc] [RFC 2/9] spapr: Rearrange versioned machine type code, David Gibson, 2015/11/30
- Re: [Qemu-ppc] [RFC 2/9] spapr: Rearrange versioned machine type code,
Thomas Huth <=
- [Qemu-ppc] [RFC 4/9] Move SET_MACHINE_COMPAT macro to boards.h, David Gibson, 2015/11/30
- Re: [Qemu-ppc] [RFC 0/9] Cleanup pseries machine versioning, David Gibson, 2015/11/30