From patchwork Sun Oct 22 00:46:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 116615 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3186463qgn; Sat, 21 Oct 2017 17:48:47 -0700 (PDT) X-Received: by 10.200.63.43 with SMTP id c40mr13029078qtk.219.1508633327482; Sat, 21 Oct 2017 17:48:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508633327; cv=none; d=google.com; s=arc-20160816; b=whG4u6uNplk7YR3iB6llz1bgefPnyuc3jeOCGkywqrv/3mHoyV8xUtnY4Yma41EW5Y vgWqFa2VRGKYnPoFou9pwD2LxkCbVVzxNQ+rMKHZDq3rAC7shITk5GcgUmKSDqMr9wSX IbdFDByb+iaevbbn0RIXG7o9mM2O7Ra8FtOmQJUQNzdWCoUMM/Mq2k7KKoS+BH1JLzH6 bS/V2utLf+dgRqmINofMS0LwzKWwL0cXia8zAL70nocHcBHMKr1vJMN4L6llKpmr/kfv 7Cu1uLDbURWssrjUNrdT6pMOrtk13OFDkooSXCVAfxiThw/UcGmQlhBTlRWIuacUdocd VXfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=mhxHkxLsHACjAzqABO+KlIfl3hzSQXuv0t/kOj/Wt+0=; b=D9IicRwPwSlo8sY41UpTAi1kLhudZnFAXoCeBogxP18DFGtj05xJ/6ETUmsdMC7jxl LtzyG5R3qVaZI22k/AmBBa6ER29yTRvlxfxV/Y25/aTorxwur6QshOOml3Aog66JWP1V fM7igSMiW7mtrLviz0YImVAyJ1AF92ch4K4xz8WS+pACbpBYuWY2J4TTS2tU+DvNBU/1 snhM+nIwboCTvYF8gqD7Ril3F1S/Uz6gdibYidVU8kCJF4LF6w5tZQCEBP8+/+eJnJNz JozvCOK4rqGXNtU3z1o8pFTLM4UMB8kO31jb2P9/Dsp0uBD/ZuQueMDqM6ImZZ/oXzW4 Bdqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=E7kVde9Q; 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 a34si301135qte.293.2017.10.21.17.48.47 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 21 Oct 2017 17:48:47 -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=E7kVde9Q; 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]:59628 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e64RZ-0003Mb-EE for patch@linaro.org; Sat, 21 Oct 2017 20:48:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37256) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e64PP-0002CO-Hz for qemu-devel@nongnu.org; Sat, 21 Oct 2017 20:46:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e64PK-00089p-MA for qemu-devel@nongnu.org; Sat, 21 Oct 2017 20:46:31 -0400 Received: from mail-pg0-x22a.google.com ([2607:f8b0:400e:c05::22a]:43139) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e64PK-00088w-Eb for qemu-devel@nongnu.org; Sat, 21 Oct 2017 20:46:26 -0400 Received: by mail-pg0-x22a.google.com with SMTP id s75so9206760pgs.0 for ; Sat, 21 Oct 2017 17:46:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=mhxHkxLsHACjAzqABO+KlIfl3hzSQXuv0t/kOj/Wt+0=; b=E7kVde9QnyuuTAB1dUue9eW5x78/kwWEVoNFOmbd/UkrCY1UeqBTD/vO1MvaqW2fUy 0PnZVvnwA91rQOi216ABHh7SLBXglvEsHaZjwsQS0uoDndGOAgdU3sCRaxx5Ri/Q2p1t cfU5CbmEh4mPv0u/omhrNHVob9blv4ufYglLw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=mhxHkxLsHACjAzqABO+KlIfl3hzSQXuv0t/kOj/Wt+0=; b=AXUXxcU/xStnmqSDPGJaGId5LdhZrcsyGP1bontHG2KLadf8D5Y9fQ0ICI3BYxv9Uk VfpkSNxtLAVg6+Lo6nq739hhGYrscZVW4G9otf4zKTqbFIBN/sfMPlpHECkl/8tNQ8lz ArX5bk6EwfNL8jUhompZ3FUE24hpeNp4G5FTcBV5Xfui8LotM/yzz7Xrct+f/CqETRtL qi6nwtJCIvTYHnG/fbUzC8vvp8UQ0mhpg+7PK3IOFvDqsU9pDr9D+bmX6DUlyo2Ec0vW cWRJ+rIm7jfTmzGpe0lWYwhx9Fo80uboQtI70xTQcDkwExUzeUDSKNc2m8QPv6GvRLlk ZxfQ== X-Gm-Message-State: AMCzsaVNNVjew+w6+Qm5tmTrcHdiY+ayuPEtzdZ5c5YsFHSMW+tRghFq IAvbQp/zhe5f+lvjmeQXN1LVMJZteck= X-Google-Smtp-Source: ABhQp+TPHzjDcGudJry7kSqzmZNoupuPoxhk5qstPyYjKssThZzEUhxR77FS5h8GBZxqyQEqP86bpg== X-Received: by 10.98.217.78 with SMTP id s75mr9068287pfg.40.1508633184680; Sat, 21 Oct 2017 17:46:24 -0700 (PDT) Received: from cloudburst.twiddle.net (174-21-9-158.tukw.qwest.net. [174.21.9.158]) by smtp.gmail.com with ESMTPSA id j12sm5766728pgs.35.2017.10.21.17.46.22 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 21 Oct 2017 17:46:23 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sat, 21 Oct 2017 17:46:10 -0700 Message-Id: <20171022004621.28372-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.6 MIME-Version: 1.0 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] [PATCH v7 00/11] Support the Capstone disassembler 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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Changes since v7: * Included target/arm disassembler changes, since one of them is affected by the Capstone change. * Re-re-redone the module patch (11/11); v6 didn't actually work without capstone present in any form. r~ Richard Henderson (11): target/i386: Convert to disas_set_info hook target/ppc: Convert to disas_set_info hook target/arm: Move BE32 disassembler fixup target/arm: Don't set INSN_ARM_BE32 for CONFIG_USER_ONLY disas: Remove unused flags arguments disas: Support the Capstone disassembler library i386: Support Capstone in disas_set_info arm: Support Capstone in disas_set_info ppc: Support Capstone in disas_set_info disas: Remove monitor_disas_is_physical disas: Add capstone as submodule Makefile | 13 ++ include/disas/bfd.h | 11 +- include/disas/capstone.h | 38 ++++++ include/disas/disas.h | 4 +- include/exec/log.h | 4 +- disas.c | 308 ++++++++++++++++++++++++++++++------------ disas/arm.c | 21 ++- monitor.c | 29 +--- target/alpha/translate.c | 2 +- target/arm/cpu.c | 49 +++---- target/arm/translate-a64.c | 3 +- target/arm/translate.c | 3 +- target/cris/translate.c | 3 +- target/hppa/translate.c | 2 +- target/i386/cpu.c | 19 +++ target/i386/translate.c | 8 +- target/lm32/translate.c | 2 +- target/m68k/translate.c | 2 +- target/microblaze/translate.c | 2 +- target/mips/translate.c | 2 +- target/nios2/translate.c | 2 +- target/openrisc/translate.c | 2 +- target/ppc/translate.c | 5 +- target/ppc/translate_init.c | 27 ++++ target/s390x/translate.c | 2 +- target/sh4/translate.c | 2 +- target/sparc/translate.c | 2 +- target/tricore/translate.c | 2 +- target/unicore32/translate.c | 2 +- target/xtensa/translate.c | 2 +- .gitmodules | 3 + capstone | 1 + configure | 64 +++++++++ 33 files changed, 457 insertions(+), 184 deletions(-) create mode 100644 include/disas/capstone.h create mode 160000 capstone -- 2.13.6