Received: from eggs.gnu.org ([208.118.235.92]:38143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiQl7-0004Lc-N0 for qemu-devel@nongnu.org; Tue, 11 Dec 2012 09:24:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TiQkz-0006jN-A9 for qemu-devel@nongnu.org; Tue, 11 Dec 2012 09:24:33 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59399) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiQkz-0006ix-0i for qemu-devel@nongnu.org; Tue, 11 Dec 2012 09:24:25 -0500 Date: Tue, 11 Dec 2012 12:25:47 -0200 From: Eduardo Habkost Message-ID: <20121211142547.GD4255@otherpad.lan.raisama.net> References: <1355220666-31722-1-git-send-email-imammedo@redhat.com> <1355220666-31722-3-git-send-email-imammedo@redhat.com> <20121211133145.GX4255@otherpad.lan.raisama.net> <20121211150856.1b6f44a3@nial.usersys.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121211150856.1b6f44a3@nial.usersys.redhat.com> Subject: Re: [Qemu-devel] [PATCH 2/6] target-i386: sanitize AMD's ext2_features at realize time List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: Don@CloudSwitch.com, qemu-devel@nongnu.org, afaerber@suse.de On Tue, Dec 11, 2012 at 03:08:56PM +0100, Igor Mammedov wrote: [...] > > > + /* On AMD CPUs, some CPUID[8000_0001].EDX bits must match the bits on > > > + * CPUID[1].EDX. > > > + */ > > > + if (env->cpuid_vendor1 == CPUID_VENDOR_AMD_1 && > > > + env->cpuid_vendor2 == CPUID_VENDOR_AMD_2 && > > > + env->cpuid_vendor3 == CPUID_VENDOR_AMD_3) { > > > > I would add extra indentation space here, to make it not align with the > > statements below, making the condition visually distinct from the body, > > like in the original code you are moving. > I've thought people would object to ident here, that's why I've changed > original indentation to a more consistent with rules. > > BTW: git grep -A 3 "if (.*[^{)]$" > shows that many places use this style including fairly recent ones: > aio-posix.c first hit > > and we have in target-i386/cpu.c > if (x86_cpu_def->vendor1 == CPUID_VENDOR_VIA_1 & > ... > with the same alignment style and at least one more similar. > Lets leave it this way to be consistent with the rest of the code. No problem. I was expressing personal preference, not knowing what was the preferred/usual style in QEMU. My only data point was the original code you moved. :-) -- Eduardo