From patchwork Fri Aug 4 06:23:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 9880633 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 51D1760360 for ; Fri, 4 Aug 2017 06:32:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3EDE92899A for ; Fri, 4 Aug 2017 06:32:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3321F289A3; Fri, 4 Aug 2017 06:32:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A8F682899A for ; Fri, 4 Aug 2017 06:32:28 +0000 (UTC) Received: from localhost ([::1]:38668 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddW9r-0002OM-W5 for patchwork-qemu-devel@patchwork.kernel.org; Fri, 04 Aug 2017 02:32:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddW15-0003XB-Gm for qemu-devel@nongnu.org; Fri, 04 Aug 2017 02:23:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddW14-0005SN-KV for qemu-devel@nongnu.org; Fri, 04 Aug 2017 02:23:23 -0400 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]:35999) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ddW14-0005Rd-F5 for qemu-devel@nongnu.org; Fri, 04 Aug 2017 02:23:22 -0400 Received: by mail-pg0-x243.google.com with SMTP id y129so905929pgy.3 for ; Thu, 03 Aug 2017 23:23:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=krKCIW/aKy0qznI+lx5y0kTUm89otc0Hfj0/Yauj0MM=; b=AR1XTWySpDYli5+44Yn/YeS6QnRTxOF6fLH+GnGcHGrYtEHdvp3na8oaw6cvvVTAIx ppJKpFBXSDtLgfkW31X53ueQGfWWcas/WYfJDGzYaMeB2fWdbrbdVzYhdyGF4zuHGtJf xVgo3uHF3oqCdOW9G8xXxIpzIt+yX9crbdhgeft5lUarFKxka1yuNttAgCT5xfK4ZPf0 KPxyMTzfr1NjPtvv4pnvr8iE6NPZ8nT+bjkbmxDz9dKh9nP4CGqeXdtMxxwPt3E/Vxrw iM+Qdha5wBt1V9Q0wUPunC5lktTlFJBzz1ydZEcvFkeQuG2Jg9H/H9qY0p+rXAuuIeCO k3kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=krKCIW/aKy0qznI+lx5y0kTUm89otc0Hfj0/Yauj0MM=; b=iEOPTPwEbVZzwa00k+cQ7aaLNh7tiVnDaR7C8I7NK+57pD5sdWZ4wLFqLoxeYCGCD+ mIo57OchjzUGSCYDIn78MBmmGdD0mAk6Kb67Dm6/sdg88Nd92x2ln0LhBBldfSxXSik4 N2V3kl+1Dl1ZK9MAi5j8kHRL42UzxFCIkNWmvl+AWeSWwesLjCBY+/jK/tyMdhZQMm2f IoXnm3aK1MbWs9sy2Q6pSpmv4dk30QboCmxgN12/8NiYxGdvDhjJlZC3vDZztmcDBsdg aU7HS114ouaXqUDGQSVwLs7IbOCdNLKmg6XmDX+cQ2q+0TYj/VvEWYbZURjhO672JZP1 XFvQ== X-Gm-Message-State: AHYfb5jL/g/eDW33g78/LDHZCGc4qSAmqlaPaxI4xIvJNSq+D/gYFd8/ 5NSKgK6TI0BQ7Fsbzys= X-Received: by 10.98.70.200 with SMTP id o69mr1293545pfi.325.1501827801445; Thu, 03 Aug 2017 23:23:21 -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 q199sm1335819pfq.135.2017.08.03.23.23.20 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 Aug 2017 23:23:20 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 3 Aug 2017 23:23:12 -0700 Message-Id: <20170804062314.12594-5-rth@twiddle.net> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20170804062314.12594-1-rth@twiddle.net> References: <20170804062314.12594-1-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::243 Subject: [Qemu-devel] [PATCH for-2.11 4/6] disas/i386: Add disassembly of rorx 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: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Richard Henderson --- disas/i386.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/disas/i386.c b/disas/i386.c index 7eaa378a10..a557e678ec 100644 --- a/disas/i386.c +++ b/disas/i386.c @@ -684,6 +684,7 @@ fetch_data(struct disassemble_info *info, bfd_byte *addr) #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 PREGRP109 NULL, { { NULL, USE_PREFIX_USER_TABLE }, { NULL, 109 } } #define X86_64_0 NULL, { { NULL, X86_64_SPECIAL }, { NULL, 0 } } #define X86_64_1 NULL, { { NULL, X86_64_SPECIAL }, { NULL, 1 } } @@ -1557,7 +1558,7 @@ static const unsigned char threebyte_0x3a_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 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* ff */ + /* f0 */ 1,0,0,0,0,0,0,0,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 */ }; @@ -2817,6 +2818,14 @@ static const struct dis386 prefix_user_table[][4] = { { "(bad)", { XX } }, { "pdep", { Gv, Bv, Ev } }, }, + + /* PREGRP109 */ + { + { "(bad)", { XX } }, + { "(bad)", { XX } }, + { "(bad)", { XX } }, + { "rorx", { Gv, Ev, Ib } }, + }, }; static const struct dis386 x86_64_table[][2] = { @@ -3403,7 +3412,7 @@ static const struct dis386 three_byte_table[][256] = { { "(bad)", { XX } }, { "(bad)", { XX } }, /* f0 */ - { "(bad)", { XX } }, + { PREGRP109 }, { "(bad)", { XX } }, { "(bad)", { XX } }, { "(bad)", { XX } },