From patchwork Thu Oct 26 10:00:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 117186 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp567136qgn; Thu, 26 Oct 2017 03:03:36 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TYoDYr5d4+fgBy+tyLf+fwkpYOx+ZI586gZK0Kqpi+ImAQ8GiPE1LHXDqZj1pxvl2WPDaY X-Received: by 10.37.234.72 with SMTP id o8mr3439701ybe.187.1509012216606; Thu, 26 Oct 2017 03:03:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509012216; cv=none; d=google.com; s=arc-20160816; b=FNSxGAklDTMB9+maZ9A8SaXEJ/eFoNYAyyNIObla1BN6unMRQApXMrVCc4lfXtWKZQ QjGQALeNyxTX40xTKQXHXfVS0w7TufCYCGbCsNg5DNTfS6Mc6AS6gQZEa23EE+b2O4v6 UtQ2HY+IpINoziqjhP1bQzSr0Rt5WvEP1Y8C9A9AmXa3XXi6fu5+MXOHGqrDdgWwH7fH 2mdCAbplOmPHKdfr1ZeHIPuXB/QqW7c0WovdkI57K73VMYlaLNvURmtMRl/P4VJuzmKX EW0CygVDnc1046mZCIVi/L3FXlJyc7Ny9mQUxZv2JrVzxseTDuUSomVfSRLT0lN+be8M gxlQ== 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 :content-transfer-encoding:mime-version:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=+4kfkmpdporDwyi16SdNQfdC1PT/U/RWFUXsqughJYE=; b=p4ad9PwSKVVe5B2TWFQOTWWTfOwYyZvNL71dPIuktEZfP1lMXLKuhmdqwwl8BvAwTh nnbuKgb/7ZecTcE1j5pEyrue589pnDE6g1QWZKDknOtOYH+omZpmPBQng3KG8Q3bbVy1 sDRSAks+QR6OEJJr2jxiex+NJ+45X5ARxRwi//eDc2/3j4KVtpUS8mZ1ij8JEL86fW7K 5uR9EiHe4v+v/3U8qtHlpW95QjCoTTGjlKDNRNw2Yxindc0gq9ryfkDbmzWCRhzr84LO I8AOnaS+4T7TLioV5kKuZzhGk9lGHvpU8dV9xGvuRl2Ks3TNnRzA9VzVtTTmWrBhQdzz oWMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=WEHLGm6A; 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 j17si731710ybm.170.2017.10.26.03.03.36 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 26 Oct 2017 03:03:36 -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=WEHLGm6A; 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]:51901 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7f0i-00050G-5q for patch@linaro.org; Thu, 26 Oct 2017 06:03:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7exu-0003NS-1d for qemu-devel@nongnu.org; Thu, 26 Oct 2017 06:00:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7exp-0000mJ-Ri for qemu-devel@nongnu.org; Thu, 26 Oct 2017 06:00:42 -0400 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:47720) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e7exp-0000lN-LC for qemu-devel@nongnu.org; Thu, 26 Oct 2017 06:00:37 -0400 Received: by mail-wm0-x22f.google.com with SMTP id r196so6831542wmf.2 for ; Thu, 26 Oct 2017 03:00:37 -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:mime-version :content-transfer-encoding; bh=+4kfkmpdporDwyi16SdNQfdC1PT/U/RWFUXsqughJYE=; b=WEHLGm6A/8SXRgZzVKi2l+TqF+5k02LyHLc8BdWkGcNIl1y8rEMCHyQILU9Lj7sNO+ +FaR00+QV0KxYr7Vv6gE+WRU49KGknF3NOn/ZXMUX6+WHtKiwBE/DcByL+/OgvqyuOrB 4YuGFUuVPy0Ki/WzXL3qh/sr/KXDJaUlX2eGQ= 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:mime-version :content-transfer-encoding; bh=+4kfkmpdporDwyi16SdNQfdC1PT/U/RWFUXsqughJYE=; b=axv1WldKsCnwugBhu044pkuQBsUFuVSihiXbt+5T7LatN67a+GaiXyksI7hPYtGHh0 lWBMbpeOZmyDOHZcX6U8tNgICLq7BRtiN2P57kw0qVofvEoCRv8MxLjlWSHEQ9nudZ0K 0Oj49osyKGRgMk13PFcN57iam/98pIXu2vSfeUn8cZTfNob7+minHb06YY37I72OYeQH 7W8TNZtNoy3nzzRYyT8R+HxWTI7Vj+/POmB4zdGnJcbil0WTJpgjcNSr/glP7F8tD0gn p3cfSfEQdXPlXMcidA3/9ED8vGElz38xmwYegDx6GLwHCioE4OkeCtsrjaNTF6Ge6HrA maoQ== X-Gm-Message-State: AMCzsaUaq0hxjLRQQODzwzIPqXhpAoOUX2kse96kMPGpO4wGEHlglpMZ mfvHrSgKTxCy7IDS/eF5gXo4zKqL+Ag= X-Received: by 10.28.97.194 with SMTP id v185mr1147326wmb.117.1509012036228; Thu, 26 Oct 2017 03:00:36 -0700 (PDT) Received: from cloudburst.twiddle.net ([62.168.35.124]) by smtp.gmail.com with ESMTPSA id v8sm4516959wrg.80.2017.10.26.03.00.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 Oct 2017 03:00:35 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 26 Oct 2017 12:00:30 +0200 Message-Id: <20171026100031.19042-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: 2a00:1450:400c:c09::22f Subject: [Qemu-devel] [PULL v2 00/11] Disassembler patches 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 Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Support for Capstone, plus an arm32 fix. Changes since v1: * Fixed mingw32 build in patch 11/11. (Not re-sending patches 01-10.) r~ The following changes since commit 3d7196d43bfe12efe98568cb60057e273652b99b: Merge remote-tracking branch 'remotes/kraxel/tags/usb-20171023-pull-request' into staging (2017-10-24 16:05:57 +0100) are available in the git repository at: git://github.com/rth7680/qemu.git tags/pull-dis-20171026 for you to fetch changes up to e219c499e9f5d4fa0e25dc07682f75531ee84d86: disas: Add capstone as submodule (2017-10-26 11:56:20 +0200) ---------------------------------------------------------------- Capstone disassembler ---------------------------------------------------------------- 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 | 15 ++ 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 | 72 ++++++++++ 33 files changed, 467 insertions(+), 184 deletions(-) create mode 100644 include/disas/capstone.h create mode 160000 capstone