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: 813906 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="PMONrmmt"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xtS0l16LJz9s9Y for ; Fri, 15 Sep 2017 04:36:19 +1000 (AEST) Received: from localhost ([::1]:49449 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsYzp-0000SI-CU for incoming@patchwork.ozlabs.org; Thu, 14 Sep 2017 14:36:17 -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+incoming=patchwork.ozlabs.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(+) 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[] = {