[PATCH] x86-64: make SYSEXIT handling similar to SYSRET's
H.J. Lu
hjl.tools@gmail.com
Mon Mar 8 14:17:19 GMT 2021
On Mon, Mar 8, 2021 at 5:53 AM Jan Beulich <jbeulich@suse.com> wrote:
>
> Despite SYSEXIT being an Intel-only insn in long mode, its behavior
> there is similar to SYSRET's: Depending on REX.W execution continues in
> either 64-bit or compatibility mode. Hence distinguishing by suffix is
> as necessary here as it is there.
>
> gas/
> 2021-03-XX Jan Beulich <jbeulich@suse.com>
>
> * testsuite/gas/i386/noreg64.s: Add sysexit.
> * testsuite/gas/i386/x86-64-sysenter-amd.s: Split sysexit into
> sysexitl and sysexitq.
> * testsuite/gas/i386/noreg-intel64.l,
> testsuite/gas/i386/noreg64-data16.d,
> testsuite/gas/i386/noreg64-data16.e,
> testsuite/gas/i386/noreg64-rex64.d,
> testsuite/gas/i386/noreg64.d,
> testsuite/gas/i386/noreg64.l,
> testsuite/gas/i386/x86-64-sysenter-amd.d,
> testsuite/gas/i386/x86-64-sysenter-amd.l,
> testsuite/gas/i386/x86-64-sysenter-intel.d: Adjust expectations.
>
> opcodes/
> 2021-03-XX Jan Beulich <jbeulich@suse.com>
>
> * opcodes/i386-dis.c (dis386_twobyte): Add %LQ to sysexit.
> * opcodes/i386-opc.tbl (sysexit): Drop No_lSuf and No_qSuf from
> 64-bit form.
> * opcodes/i386-tbl.h: Re-generate.
OK.
Thanks.
--
H.J.
More information about the Binutils
mailing list