From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgdIM-0002GC-M9 for qemu-devel@nongnu.org; Sun, 26 May 2013 11:55:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UgdIL-0006ZA-AS for qemu-devel@nongnu.org; Sun, 26 May 2013 11:55:42 -0400 Received: from cantor2.suse.de ([195.135.220.15]:55012 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgdIL-0006Z5-40 for qemu-devel@nongnu.org; Sun, 26 May 2013 11:55:41 -0400 Message-ID: <51A23075.1060309@suse.de> Date: Sun, 26 May 2013 17:55:33 +0200 From: =?ISO-8859-15?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <1366705016-30471-1-git-send-email-lig.fnst@cn.fujitsu.com> <519F5107.1060200@suse.de> In-Reply-To: <519F5107.1060200@suse.de> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [update][PATCH 00/12] target-i386: remove some macros List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: liguang Cc: peter.maydell@linaro.org, ehabkost@redhat.com, qemu-devel@nongnu.org, blauwirbel@gmail.com, pbonzini@redhat.com, imammedo@redhat.com, rth@twiddle.net Am 24.05.2013 13:37, schrieb Andreas F=E4rber: > Am 23.04.2013 10:16, schrieb liguang: >> remove macros EAX, EBX, ECX, EDX, EBP, ESP, ESI, EDI, EIP, DF >> as suggested by Richard Henderson >> >> Li Guang (12) >> target-i386/helper: remove EAX macro >> target-i386/helper: remove EBX macro >> target-i386/helper: remove ECX macro >> target-i386/helper: remove EDX macro >> target-i386/helper: remove EBP macro >> target-i386/helper: remove ESP macro >> target-i386/helper: remove ESI macro >> target-i386/helper: remove EDI macro >> target-i386/helper: remove EIP macro >> target-i386/helper: remove DF macro >> target-i386/helper: remove redundant env->eip assignment >> target-i386: fix over 80 chars warnings >=20 > Hard Freeze is over, so more time to look into refactorings: >=20 > There's one thing to be aware of here, macros would make it easier to > transition from CPUX86State to X86CPU fields. However I am guessing tha= t > all these registers are accessed by TCG code via offsets from cpu_env - > please verify that. Confirmed, I just stumbled over it myself in translate.c: * all but EIP and DF are assigned to cpu_regs[] * EIP is manually stored with offsetof() twice * DF is manually loaded/stored with offsetof() thrice Andreas > If so, >=20 > Reviewed-by: Andreas F=E4rber >=20 > However, it would be nice if you could fix the \ alignment in patch > 06/12 or in the cleanup patch 12/12. >=20 > Regards, > Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg