From patchwork Thu Sep 14 18:35:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 112610 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp1094796qgf; Thu, 14 Sep 2017 11:37:47 -0700 (PDT) X-Received: by 10.237.36.146 with SMTP id t18mr5616190qtc.17.1505414267943; Thu, 14 Sep 2017 11:37:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505414267; cv=none; d=google.com; s=arc-20160816; b=Kg3xZShifG85tXHJ3/CUs9LmFORU8B/XE0mstbHBo4HCbCDyY2Cv9Ghacx6s2crLh2 aNbsybIvFfGzyrPYhnlhlas+bEb8kme1WjMNtOVmplYDrDinbYuOfe3qCs2n6VT7S2je mlulEXJAQtpgmP/StpJkBEKUhRT8o912XFy8lpAnPb1tMZxNVZVHkBGDn4iYJysp6JBO Kz3pdEHfaPlrrbbdvLayXuNwUUfBMf2mq4ugn3xmVkc/Y7zsuIibPsIK4Op76/krpN+F M8RWpidGLNgKZ0IgwW0zmKzs5tBRDdVhpsqz62d0oY6UWgvUlr1zjyWrhGnEjPgENUOp PUJA== 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=dXNgIki+m7LGtYcdnbeZX+mf/jFfdEb3n4/3NYk7fOw=; b=QXrIihAIsywm+CvCSIUV6Q1L6/ztlWzyDAH+9UnlF09tV60fxrBby9l0XeiraTBwpl PGCkFRpZRx6HIRnwkeLLzOgulF3cho5o4ZtJqomBsaSJVa7MzX/+Vz5sLr5PFXCffifU 18l39YtJ7Esjjc4a3OxxyQafGvKToZBBTD1riVG0BQQCthaAZqumNdKddNrG77tG2dsS THQslWPHEmMdo+BQIsGjmsevE9izQ64ju/uVwdmID3pdMlrWgNuYg85kxV+HFQRLXn0F qcNcHMpSVNUhktW2NvzCZwRsp9a/hvP66X/isNZ+FClMFGGYzHPJVu6FWJ5E5Rmh0n/X GwxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=PMONrmmt; 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 c14si17310143qkb.1.2017.09.14.11.37.47 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 14 Sep 2017 11:37: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=PMONrmmt; 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]:49455 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsZ1F-0001wQ-NO for patch@linaro.org; Thu, 14 Sep 2017 14:37:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsYz4-0000Qj-E6 for qemu-devel@nongnu.org; Thu, 14 Sep 2017 14:35:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dsYz3-0000ZP-Jc for qemu-devel@nongnu.org; Thu, 14 Sep 2017 14:35:30 -0400 Received: from mail-pg0-x234.google.com ([2607:f8b0:400e:c05::234]:57268) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dsYz3-0000YW-Eu for qemu-devel@nongnu.org; Thu, 14 Sep 2017 14:35:29 -0400 Received: by mail-pg0-x234.google.com with SMTP id 7so109364pgd.13 for ; Thu, 14 Sep 2017 11:35:29 -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=dXNgIki+m7LGtYcdnbeZX+mf/jFfdEb3n4/3NYk7fOw=; b=PMONrmmtSAiIe8suwcz0Vh1SbyqBNz1jkPln6N/Bxad24j+LYkc6KPtRq8JTgCGBuI YikLK8jCWzhF8j5s8BtDogDUsjPPco4nCv7y4SdBHmmptii1i0b5ZW03Gncv2k4Yevv0 2qJ7AE9Fk633UP8x6T72uSBGxR/dctcullL4o= 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=dXNgIki+m7LGtYcdnbeZX+mf/jFfdEb3n4/3NYk7fOw=; b=JL3xKyz0mIbYlQpI4sSn6jjYVw42COV/EppoyoMftb1pyvfpHCKaabp1PdXZU6Xghn csXx8piSzW8PhQYRu946lm4FZS8H426km/frH7e2SLZ4KZ3V79eFauaBJAGkPD+jXk83 m/irBDkMaJeW4XN14sDWttPxKmAULINC8pAQAnjNUBNvPi8jRsvfQvu1Q71KcOi1+eRc v6Nz3IEDIUx2Usz3WzPholu+AiRhXuu4PZxMZLOyvKsjzJTJ9K/IpBeKXllvX2NTNZHb 92/6xqetYrtnFH+mBmfTmQY9ts21Hf7yWNXqSwyCWxR0z3Ts2bBxJpDS0Y0hx4aepOar yVLg== X-Gm-Message-State: AHPjjUh7cLnggQgIXtuUGNA6mt9r5dJp+OI5QlMGOEuvh11wUFHdJfec MAWy5aejW+Ufb8DpLY1F3w== X-Google-Smtp-Source: ADKCNb5PftzP9/B0jbXa9cxrSO7SBb/SHTZrJ0HNHqzIY0CZ7AL9Do2GGj7Qf3iOvYn73O0ILE+qog== X-Received: by 10.98.33.80 with SMTP id h77mr16762734pfh.18.1505414128297; Thu, 14 Sep 2017 11:35:28 -0700 (PDT) Received: from bigtime.twiddle.net (97-126-103-167.tukw.qwest.net. [97.126.103.167]) by smtp.gmail.com with ESMTPSA id l85sm32473848pfb.176.2017.09.14.11.35.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Sep 2017 11:35:27 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 14 Sep 2017 11:35:13 -0700 Message-Id: <20170914183516.19537-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170914183516.19537-1-richard.henderson@linaro.org> References: <20170914183516.19537-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::234 Subject: [Qemu-devel] [PATCH 07/10] target/ppc: Support Capstone in disas_set_info 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: qemu-ppc@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Cc: qemu-ppc@nongnu.org Signed-off-by: Richard Henderson --- target/ppc/translate_init.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.13.5 diff --git a/target/ppc/translate_init.c b/target/ppc/translate_init.c index c7b4a7c02a..b976784d21 100644 --- a/target/ppc/translate_init.c +++ b/target/ppc/translate_init.c @@ -35,6 +35,7 @@ #include "mmu-book3s-v3.h" #include "sysemu/qtest.h" #include "qemu/cutils.h" +#include "disas/capstone.h" //#define PPC_DUMP_CPU //#define PPC_DEBUG_SPR @@ -10662,6 +10663,11 @@ static void ppc_disas_set_info(CPUState *cs, disassemble_info *info) } info->disassembler_options = (char *)"any"; info->print_insn = print_insn_ppc; + + info->cap_arch = CS_ARCH_PPC; +#ifdef TARGET_PPC64 + info->cap_mode = CS_MODE_64; +#endif } static Property ppc_cpu_properties[] = {