[PATCH v2] x86: SYSENTER/SYSEXIT are unavailable in 64-bit mode on AMD

H.J. Lu hjl.tools@gmail.com
Wed Jan 8 22:52:00 GMT 2020


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.



More information about the Binutils mailing list