This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Fix addressing prefix for x86_64
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: binutils at sources dot redhat dot com, patches at x86-64 dot org
- Date: Tue, 29 Jan 2002 16:15:50 +1030
- Subject: Re: Fix addressing prefix for x86_64
- References: <20020125195934.GH17305@atrey.karlin.mff.cuni.cz>
On Fri, Jan 25, 2002 at 08:59:34PM +0100, Jan Hubicka wrote:
> * tc-i386.c (md_assemble): Support 32bit addressing prefix on x86_64.
> (i386_index_check): Accept 32bit addressing with prefix on x86_64
> * i386-dis.c (prefix_name): Print "add32"/"addr64" in 64bit mode.
> (print_insn): Likewise.
> (OP_E): Likewise.
> (OP_OFF): Support addr32 prefix.
> (ptr_reg): Likewise.
> (putop): Print 'e' versus 'r' in 64bit mode.
OK.
> *** i386-dis.c 2001/11/14 12:01:12 1.34
> --- 1807,1816 ----
> case 0x66:
> return (sizeflag & DFLAG) ? "data16" : "data32";
> case 0x67:
> ! if (mode_64bit)
> ! return (sizeflag & AFLAG) ? "addr32" : "addr64";
> ! else
> ! return ((sizeflag & AFLAG) && !mode_64bit) ? "addr16" : "addr32";
^^^^^^^^^^^^^^
redundant
--
Alan Modra
IBM OzLabs - Linux Technology Centre