This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] x86 (Intel mode): fix handling of FLAT
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: "Jan Beulich" <jbeulich at novell dot com>
- Cc: binutils at sourceware dot org
- Date: Wed, 13 Feb 2008 09:21:03 -0800
- Subject: Re: [PATCH] x86 (Intel mode): fix handling of FLAT
- References: <47B30128.76E4.0078.0@novell.com>
On Feb 13, 2008 5:39 AM, Jan Beulich <jbeulich@novell.com> wrote:
> --- 2008-02-13/opcodes/i386-opc.h 2008-02-13 11:13:40.000000000 +0100
> +++ 2008-02-13/opcodes/i386-opc.h 2008-02-13 14:02:34.000000000 +0100
> @@ -501,6 +501,8 @@ typedef struct
> /* EIZ and RIZ are fake index registers. */
> #define RegEiz (RegEip - 1)
> #define RegRiz (RegEiz - 1)
> +/* FLAT is a fake segment register (Intel mode). */
> +#define RegFlat ((unsigned char) ~0)
Please use (RegRiz - 1) instead of ((unsigned char) ~0). OK with this change.
Thanks.
H.J.