This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] x86: limit ImmExt abuse
- 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: Fri, 28 Jun 2019 08:36:32 -0700
- Subject: Re: [PATCH] x86: limit ImmExt abuse
- References: <5aa0682a-67e3-06b9-de69-bc8f3a4404c0@suse.com>
On Fri, Jun 28, 2019 at 7:49 AM Jan Beulich <JBeulich@suse.com> wrote:
>
> In quite a few cases ImmExt gets used when there's not really any
> immediate, but rather a degenerate ModR/M byte. ENCL{S,U} show how this
> case is supposed to be dealt with. Eliminate most abuses, leaving in
> place (for now) only ones where process_immext() is involved.
>
> gas/
> 2019-06-28 Jan Beulich <jbeulich@suse.com>
>
> * config/tc-i386.c (output_insn): Adjust recognition of xFENCE
> insns. Move PadLock special case of prefix emission to 3-byte
> long base opcode handling.
> (i386_index_check): Check for CpuPadLock instead of ImmExt.
>
> opcodes/
> 2019-06-28 Jan Beulich <jbeulich@suse.com>
>
> * i386-opc.tbl (lfence, mfence, sfence, monitor, mwait, vmcall,
> vmlaunch, vmresume, vmxoff, vmfunc, xgetbv, xsetbv, swapgs,
> rdtscp, clgi, invlpga, skinit, stgi, vmload, vmmcall, vmrun,
> vmsave, montmul, xsha1, xsha256, xstorerng, xcryptecb,
> xcryptcbc, xcryptctr, xcryptcfb, xcryptofb, xstore, clac, stac,
> monitorx, mwaitx): Drop ImmExt from operand-less forms.
> * i386-tbl.h: Re-generate.
>
OK.
Thanks.
--
H.J.