From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24176 invoked by alias); 8 Oct 2013 14:43:11 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 24167 invoked by uid 89); 8 Oct 2013 14:43:10 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: nat28.tlf.novell.com Received: from nat28.tlf.novell.com (HELO nat28.tlf.novell.com) (130.57.49.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 08 Oct 2013 14:43:09 +0000 Received: from EMEA1-MTA by nat28.tlf.novell.com with Novell_GroupWise; Tue, 08 Oct 2013 15:43:06 +0100 Message-Id: <5254361802000078000F9A59@nat28.tlf.novell.com> Date: Tue, 08 Oct 2013 14:43:00 -0000 From: "Jan Beulich" To: "H.J. Lu" Cc: , Subject: [PATCH 4/6] x86/MPX: bndmk, bndldx, and bndstx only allow a memory operand References: <5254349502000078000F9A3D@nat28.tlf.novell.com> In-Reply-To: <5254349502000078000F9A3D@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part9FAC94E8.2__=" X-SW-Source: 2013-10/txt/msg00072.txt.bz2 This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part9FAC94E8.2__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-length: 1143 bndmk, bndldx, and bndstx only allow memory operands, so decoding should use OP_M() instead of OP_E(). opcodes/ 2013-10-08 Jan Beulich * i386-dis.c (Mv_bnd): New. (mod_table): Use it for bndmk, bndldx, and bndstx. --- 2013-10-07/opcodes/i386-dis.c +++ 2013-10-07/opcodes/i386-dis.c @@ -250,6 +250,7 @@ fetch_data (struct disassemble_info *inf #define Mo { OP_M, o_mode } #define Mp { OP_M, f_mode } /* 32 or 48 bit memory operand for LDS, LES e= tc */ #define Mq { OP_M, q_mode } +#define Mv_bnd { OP_M, v_bnd_mode } #define Mx { OP_M, x_mode } #define Mxmm { OP_M, xmm_mode } #define Gb { OP_G, b_mode } @@ -11126,17 +11127,17 @@ static const struct dis386 mod_table[][2 }, { /* MOD_0F1A_PREFIX_0 */ - { "bndldx", { Gbnd, Ev_bnd } }, + { "bndldx", { Gbnd, Mv_bnd } }, { "nopQ", { Ev } }, }, { /* MOD_0F1B_PREFIX_0 */ - { "bndstx", { Ev_bnd, Gbnd } }, + { "bndstx", { Mv_bnd, Gbnd } }, { "nopQ", { Ev } }, }, { /* MOD_0F1B_PREFIX_1 */ - { "bndmk", { Gbnd, Ev_bnd } }, + { "bndmk", { Gbnd, Mv_bnd } }, { "nopQ", { Ev } }, }, { --=__Part9FAC94E8.2__= Content-Type: text/plain; name="binutils-mainline-x86-MPX-no-reg.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="binutils-mainline-x86-MPX-no-reg.patch" Content-length: 1140 bndmk, bndldx, and bndstx only allow memory operands, so decoding should use OP_M() instead of OP_E(). opcodes/ 2013-10-08 Jan Beulich * i386-dis.c (Mv_bnd): New. (mod_table): Use it for bndmk, bndldx, and bndstx. --- 2013-10-07/opcodes/i386-dis.c +++ 2013-10-07/opcodes/i386-dis.c @@ -250,6 +250,7 @@ fetch_data (struct disassemble_info *inf #define Mo { OP_M, o_mode } #define Mp { OP_M, f_mode } /* 32 or 48 bit memory operand for LDS, LES e= tc */ #define Mq { OP_M, q_mode } +#define Mv_bnd { OP_M, v_bnd_mode } #define Mx { OP_M, x_mode } #define Mxmm { OP_M, xmm_mode } #define Gb { OP_G, b_mode } @@ -11126,17 +11127,17 @@ static const struct dis386 mod_table[][2 }, { /* MOD_0F1A_PREFIX_0 */ - { "bndldx", { Gbnd, Ev_bnd } }, + { "bndldx", { Gbnd, Mv_bnd } }, { "nopQ", { Ev } }, }, { /* MOD_0F1B_PREFIX_0 */ - { "bndstx", { Ev_bnd, Gbnd } }, + { "bndstx", { Mv_bnd, Gbnd } }, { "nopQ", { Ev } }, }, { /* MOD_0F1B_PREFIX_1 */ - { "bndmk", { Gbnd, Ev_bnd } }, + { "bndmk", { Gbnd, Mv_bnd } }, { "nopQ", { Ev } }, }, { --=__Part9FAC94E8.2__=--