public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Use per instruction prefix control.
@ 2015-04-06 15:47 Ilya Tocar
  2015-04-06 15:57 ` H.J. Lu
  0 siblings, 1 reply; 4+ messages in thread
From: Ilya Tocar @ 2015-04-06 15:47 UTC (permalink / raw)
  To: H.J. Lu, binutils

[-- Attachment #1: Type: text/plain, Size: 335 bytes --]

Hi,

To deal with problems like
https://sourceware.org/bugzilla/show_bug.cgi?id=17898
We need more fine-grained prefix control than
twobyte_has_mandatory_prefix[256]
Attached patch adds mandatory_prefix field to struct dis386,
which will be used to control allowed/mandatory/forbidden prefixes on
per instruction basis.

Ok for trunk?

[-- Attachment #2: patch.tar.gz --]
[-- Type: application/gzip, Size: 28121 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Use per instruction prefix control.
  2015-04-06 15:47 [PATCH] Use per instruction prefix control Ilya Tocar
@ 2015-04-06 15:57 ` H.J. Lu
  2015-04-06 16:36   ` Ilya Tocar
  0 siblings, 1 reply; 4+ messages in thread
From: H.J. Lu @ 2015-04-06 15:57 UTC (permalink / raw)
  To: Ilya Tocar; +Cc: Binutils

On Mon, Apr 6, 2015 at 8:46 AM, Ilya Tocar <tocarip.intel@gmail.com> wrote:
> Hi,
>
> To deal with problems like
> https://sourceware.org/bugzilla/show_bug.cgi?id=17898
> We need more fine-grained prefix control than
> twobyte_has_mandatory_prefix[256]
> Attached patch adds mandatory_prefix field to struct dis386,
> which will be used to control allowed/mandatory/forbidden prefixes on
> per instruction basis.
>

A prefix can be optional for an opcode which may be UD
with the other prefixes.  Please remove

#define PREFIX_OPTIONAL 0

and replace

{ "vfpclassss",    { XMask, EXxmm_md, Ib }, PREFIX_OPTIONAL },

with

{ "vfpclassss",    { XMask, EXxmm_md, Ib }, 0 },

OK with this change.

Thanks.

-- 
H.J.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Use per instruction prefix control.
  2015-04-06 15:57 ` H.J. Lu
@ 2015-04-06 16:36   ` Ilya Tocar
  2015-04-06 16:43     ` H.J. Lu
  0 siblings, 1 reply; 4+ messages in thread
From: Ilya Tocar @ 2015-04-06 16:36 UTC (permalink / raw)
  To: H.J. Lu; +Cc: Binutils

[-- Attachment #1: Type: text/plain, Size: 833 bytes --]

On 06 Apr 08:57, H.J. Lu wrote:
> On Mon, Apr 6, 2015 at 8:46 AM, Ilya Tocar <tocarip.intel@gmail.com> wrote:
> > Hi,
> >
> > To deal with problems like
> > https://sourceware.org/bugzilla/show_bug.cgi?id=17898
> > We need more fine-grained prefix control than
> > twobyte_has_mandatory_prefix[256]
> > Attached patch adds mandatory_prefix field to struct dis386,
> > which will be used to control allowed/mandatory/forbidden prefixes on
> > per instruction basis.
> >
> 
> A prefix can be optional for an opcode which may be UD
> with the other prefixes.  Please remove
> 
> #define PREFIX_OPTIONAL 0
> 
> and replace
> 
> { "vfpclassss",    { XMask, EXxmm_md, Ib }, PREFIX_OPTIONAL },
> 
> with
> 
> { "vfpclassss",    { XMask, EXxmm_md, Ib }, 0 },
> 
> OK with this change.
> 
> Thanks.
>
Thanks.

I've committed attached version

[-- Attachment #2: patch.tar.gz --]
[-- Type: application/gzip, Size: 27760 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Use per instruction prefix control.
  2015-04-06 16:36   ` Ilya Tocar
@ 2015-04-06 16:43     ` H.J. Lu
  0 siblings, 0 replies; 4+ messages in thread
From: H.J. Lu @ 2015-04-06 16:43 UTC (permalink / raw)
  To: Ilya Tocar; +Cc: Binutils

On Mon, Apr 6, 2015 at 9:35 AM, Ilya Tocar <tocarip.intel@gmail.com> wrote:
> On 06 Apr 08:57, H.J. Lu wrote:
>> On Mon, Apr 6, 2015 at 8:46 AM, Ilya Tocar <tocarip.intel@gmail.com> wrote:
>> > Hi,
>> >
>> > To deal with problems like
>> > https://sourceware.org/bugzilla/show_bug.cgi?id=17898
>> > We need more fine-grained prefix control than
>> > twobyte_has_mandatory_prefix[256]
>> > Attached patch adds mandatory_prefix field to struct dis386,
>> > which will be used to control allowed/mandatory/forbidden prefixes on
>> > per instruction basis.
>> >
>>
>> A prefix can be optional for an opcode which may be UD
>> with the other prefixes.  Please remove
>>
>> #define PREFIX_OPTIONAL 0
>>
>> and replace
>>
>> { "vfpclassss",    { XMask, EXxmm_md, Ib }, PREFIX_OPTIONAL },
>>
>> with
>>
>> { "vfpclassss",    { XMask, EXxmm_md, Ib }, 0 },
>>
>> OK with this change.
>>
>> Thanks.
>>
> Thanks.
>
> I've committed attached version

Thanks.

-- 
H.J.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-04-06 16:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-06 15:47 [PATCH] Use per instruction prefix control Ilya Tocar
2015-04-06 15:57 ` H.J. Lu
2015-04-06 16:36   ` Ilya Tocar
2015-04-06 16:43     ` H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).