This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH v2] x86: SYSENTER/SYSEXIT are unavailable in 64-bit mode on AMD
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Jan Beulich <jbeulich at suse dot com>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Wed, 8 Jan 2020 14:52:18 -0800
- Subject: Re: [PATCH v2] x86: SYSENTER/SYSEXIT are unavailable in 64-bit mode on AMD
- References: <a1c6e116-ee4f-ed9e-00df-22b62958944b@suse.com>
On Sun, Nov 24, 2019 at 11:30 PM Jan Beulich <jbeulich@suse.com> wrote:
>
> The disassembler change is such that in default mode we'd disassemble
> the insns (for there not ebing any conflicts), but when AMD64 mode was
> explicitly requested, we'd show them as "(bad)".
>
> gas/
> 2019-11-XX Jan Beulich <jbeulich@suse.com>
>
> * testsuite/gas/i386/x86-64-sysenter-amd.s,
> testsuite/gas/i386/x86-64-sysenter-amd.d,
> testsuite/gas/i386/x86-64-sysenter-amd.l,
> testsuite/gas/i386/x86-64-sysenter-intel.d,
> testsuite/gas/i386/x86-64-sysenter-mixed.d: New.
> * testsuite/gas/i386/i386.exp: Run new tests.
>
> opcodes/
> 2019-11-XX Jan Beulich <jbeulich@suse.com>
>
> * i386-dis.c (SEP_Fixup): New.
> (SEP): Define.
> (dis386_twobyte): Use it for sysenter/sysexit.
> (enum x86_64_isa): Change amd64 enumerator to value 1.
> (OP_J): Compare isa64 against intel64 instead of amd64.
> * i386-opc.tbl (sysenter, sysexit): Split into AMD64 and Intel64
> forms.
> * i386-tbl.h: Re-generate.
OK.
Thanks.
--
H.J.