From patchwork Wed Sep 6 14:49:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 111786 Delivered-To: patch@linaro.org Received: by 10.140.94.166 with SMTP id g35csp995841qge; Wed, 6 Sep 2017 07:53:01 -0700 (PDT) X-Received: by 10.80.148.68 with SMTP id q4mr6128799eda.195.1504709581091; Wed, 06 Sep 2017 07:53:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504709581; cv=none; d=google.com; s=arc-20160816; b=qsLbJ12veLKj5C6vZjZHPmSoUpsll7qkN4lKvXJYv4FqayLCuZQ3ZTPx3BUCobj8Nr X7B3/QehAjacei6jilIu8EGCVagqCGnGei4Eo6hBZCYk5pp7hVktEsXHaGI5/1s4Q4Mw ICB+ie2HgfUQTT7IC4Ion30MSHjoY5eGLoNSS/LkGMVh/TMyon4VAe8Q45JPkcVWQ7n5 on+IcjbTB7I4KaDpOx1ZXbeDw9Kxjh3S8ScGRI+ifJemcpwLrDKOiXU4J6BPSW1Eah1o Bjqcvex2B/R2Wm9RYl5mKCB08p4CFcwlf7N3Qwty31ghRpRCf9rFwp/PQSFCP/jIiz2A 14KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=ute9HxNC5ZTHgV76jIzwo5OvXvO+yHYJKwukwEdzAho=; b=roternH1LFNH3x0y23wPI+8TOmKunEPz/tMX5XxpzflhXozAeOZrIUUjkN6q8yCieU nkEa7Lgk3KWoRgoCPUWiU2gTMw2ZqfF/pDbFmT1kMxIvPtAicLXoeaJVB4WBKXT2ZzOe JhZK0e9Kqgc3LjGrJBLqpHu6oosAr+YudO0H96fepi6V9G8b4ZMgALLVJRcVribvEm8K 8JZmOtsmBv4lTDwFVb8cYyA2+X0145LtjYEsMENDJYF4ekco8/1QcMmnTL4QQuPYNeYt fqQwRl2bhFKORdnP33oIN0TqUfB6A/xwVUz3c0NnO8+sH03igaw1srLq9/ZkixDUOFip G5xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=OYjac9kt; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id j10si3257924edl.249.2017.09.06.07.53.00 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 06 Sep 2017 07:53:01 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=OYjac9kt; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:36535 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpbhM-0007lK-0q for patch@linaro.org; Wed, 06 Sep 2017 10:53:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpbeN-0005Sv-Vt for qemu-devel@nongnu.org; Wed, 06 Sep 2017 10:49:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dpbeJ-0000E1-4I for qemu-devel@nongnu.org; Wed, 06 Sep 2017 10:49:56 -0400 Received: from mail-pg0-x22a.google.com ([2607:f8b0:400e:c05::22a]:37040) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dpbeI-0000Dn-Un for qemu-devel@nongnu.org; Wed, 06 Sep 2017 10:49:51 -0400 Received: by mail-pg0-x22a.google.com with SMTP id d8so15605692pgt.4 for ; Wed, 06 Sep 2017 07:49:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ute9HxNC5ZTHgV76jIzwo5OvXvO+yHYJKwukwEdzAho=; b=OYjac9ktMny7HZUNtqLU/1EZBFLtvdUd4KwQt89T+CSwPmdff1toAtV+u3KsFzxHs0 oa6blOKHKu24DRhqjA4fSNk9VlHd8rt4sWnGxG/Gfjte94IymsRFQRiRviOdcsOSZUO5 Q1Ep/JgF2/QZIdXSBtaXofoSZqzlhBtcVM5nI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ute9HxNC5ZTHgV76jIzwo5OvXvO+yHYJKwukwEdzAho=; b=BuoakuAH52KuS0bvtF7ElTgeKzR00EmsQfJgbWJzHyW3KoYlbr0iSORgMizP+tdDh6 ouO5QoRJrjuJmgsBgntd7EhtOS1wVTyPoYtDyLr75ZCJ0i5wbt+XlJ44yVXS4hE6iiR0 o/a+rx2ZrDI/gEPqnmNPmcZ79GrLku7VgnAsdm2EAR2IaY/X4RVNrRpTW0Ci6VwbrVq8 zJdkmcKzdTsIztanRauH022xC6Cu1Jnt6uBJlCvyNSp7WIWAqKmPQ0FduOgdziUcyyfn QSMiRipO/P2Mzl9Pt87fzPdILFTOvuF7qF1XtnA4wG8nfustKfnYAPOn9vK0igprGpc+ RfiA== X-Gm-Message-State: AHPjjUjGRVjv7VbtMfIDd0QrHQVez3tljLxmZhmcAqRJRpDlDGMB3RB2 WiDQ6mpWMdUk9k4NR4qqSA== X-Google-Smtp-Source: ADKCNb5zxlxHfQwAJUPYEBubk0i9dMHctovT5MNOax2NBEAw0uzx9ypu+4OhvhgUycOOopsvMVvoWA== X-Received: by 10.84.130.9 with SMTP id 9mr8402908plc.241.1504709389723; Wed, 06 Sep 2017 07:49:49 -0700 (PDT) Received: from bigtime.twiddle.net (97-126-108-236.tukw.qwest.net. [97.126.108.236]) by smtp.gmail.com with ESMTPSA id h1sm3467646pfg.153.2017.09.06.07.49.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Sep 2017 07:49:48 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 6 Sep 2017 07:49:31 -0700 Message-Id: <20170906144940.30880-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170906144940.30880-1-richard.henderson@linaro.org> References: <20170906144940.30880-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::22a Subject: [Qemu-devel] [PULL 05/14] disas/i386: Add disassembly of vex.0f38.f5 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Richard Henderson Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson Which includes pext, pdep and bzhi. Signed-off-by: Richard Henderson --- disas/i386.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) -- 2.13.5 diff --git a/disas/i386.c b/disas/i386.c index 7a238b203b..7eaa378a10 100644 --- a/disas/i386.c +++ b/disas/i386.c @@ -683,6 +683,7 @@ fetch_data(struct disassemble_info *info, bfd_byte *addr) #define PREGRP105 NULL, { { NULL, USE_PREFIX_USER_TABLE }, { NULL, 105 } } #define PREGRP106 NULL, { { NULL, USE_PREFIX_USER_TABLE }, { NULL, 106 } } #define PREGRP107 NULL, { { NULL, USE_PREFIX_USER_TABLE }, { NULL, 107 } } +#define PREGRP108 NULL, { { NULL, USE_PREFIX_USER_TABLE }, { NULL, 108 } } #define X86_64_0 NULL, { { NULL, X86_64_SPECIAL }, { NULL, 0 } } #define X86_64_1 NULL, { { NULL, X86_64_SPECIAL }, { NULL, 1 } } @@ -1484,7 +1485,7 @@ static const unsigned char threebyte_0x38_uses_REPNZ_prefix[256] = { /* c0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* cf */ /* d0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* df */ /* e0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* ef */ - /* f0 */ 1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0, /* ff */ + /* f0 */ 1,1,0,0,0,1,0,1,0,0,0,0,0,0,0,0, /* ff */ /* ------------------------------- */ /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */ }; @@ -1508,7 +1509,7 @@ static const unsigned char threebyte_0x38_uses_REPZ_prefix[256] = { /* c0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* cf */ /* d0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* df */ /* e0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* ef */ - /* f0 */ 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0, /* ff */ + /* f0 */ 0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0, /* ff */ /* ------------------------------- */ /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */ }; @@ -2808,6 +2809,14 @@ static const struct dis386 prefix_user_table[][4] = { { "bsfS", { Gv, Ev } }, { "(bad)", { XX } }, }, + + /* PREGRP108 */ + { + { "bzhi", { Gv, Ev, Bv } }, + { "pext", { Gv, Bv, Ev } }, + { "(bad)", { XX } }, + { "pdep", { Gv, Bv, Ev } }, + }, }; static const struct dis386 x86_64_table[][2] = { @@ -3108,7 +3117,7 @@ static const struct dis386 three_byte_table[][256] = { { PREGRP105 }, { "(bad)", { XX } }, { "(bad)", { XX } }, - { "(bad)", { XX } }, + { PREGRP108 }, { "(bad)", { XX } }, { PREGRP106 }, /* f8 */