Re: [Qemu-devel] [PATCH v2 1/2] i386: rewrite way CPUID index is validated

2017-05-05 Thread Eduardo Habkost
On Fri, May 05, 2017 at 03:27:42PM +0100, Daniel P. Berrange wrote: > Change the nested if statements into a flat switch, to make > it clearer what validation / capping is being performed on > different CPUID index values. > > Signed-off-by: Daniel P. Berrange > --- > target/i386/cpu.c | 43

[Qemu-devel] [PATCH v2 1/2] i386: rewrite way CPUID index is validated

2017-05-05 Thread Daniel P. Berrange
Change the nested if statements into a flat switch, to make it clearer what validation / capping is being performed on different CPUID index values. Signed-off-by: Daniel P. Berrange --- target/i386/cpu.c | 43 +-- 1 file changed, 25 insertions(+), 18 dele