Re: [Qemu-devel] [RFC PATCH 9/9] spapr: Small cleanup of PPC MMU enums

2017-02-08 Thread David Gibson
On Tue, Feb 07, 2017 at 01:56:52PM +1100, Sam Bobroff wrote: > The PPC MMU types are sometimes treated as if they were a bit field > and sometime as if they were an enum which causes maintenance > problems: flipping bits in the MMU type (which is done on both the 1TB > segment and 64K segment bits)

[Qemu-devel] [RFC PATCH 9/9] spapr: Small cleanup of PPC MMU enums

2017-02-06 Thread Sam Bobroff
The PPC MMU types are sometimes treated as if they were a bit field and sometime as if they were an enum which causes maintenance problems: flipping bits in the MMU type (which is done on both the 1TB segment and 64K segment bits) currently produces new MMU type values that are not handled in every