From patchwork Thu Sep 14 18:35:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 112614 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp1097852qgf; Thu, 14 Sep 2017 11:40:33 -0700 (PDT) X-Received: by 10.237.34.118 with SMTP id o51mr26129623qtc.36.1505414433530; Thu, 14 Sep 2017 11:40:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505414433; cv=none; d=google.com; s=arc-20160816; b=wpj//Nz2HNb0eHOT39QU0UBp6zYqiXML/qmdzTfkMWQs5bYqSlicTgGmr9qcj+OnjZ U0Fa2sB6rgPiaM+nhPY+KNTbKRfSNpdIeBOkaIZWewUOxqCbTacYrZtTs5oRbv8DNLmP 2Q5g3ZoH1Xi2oJN6sc4DzOGXsVgsiIPi8n8txQYdhaBLsmC8YUmMYtBCsYsVjXVX9F+O n/X3m+sQS896hTfKiSSMqLmbAoe8Oy3F1iF15B9sDgDAulgt3O4Z31mbfUX0Z45PGuSZ S5gDvSmvq+ypvrrGV5mMyMgAZVcy10B08DaXhYy5lNS57fnKFefXotSRU6aRK+dduklO bGng== 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=fmGan1ShCJ5GBnPRPye1s5iBqwpl8mHcISObIerH4So=; b=L84paQK61+QYkJHgTKe5EsKR7lBeACsCokS8Nkw9d03vcElQCAa/5Lc7RfJCTEtHC5 zA1LZrPRwo6FUvEgPV3zfYrDBYd7nyr6WE6ot6zrlG8+iw+z+uJAm3kK6HncPVmn+htM 0jgFzglSXstRcS75vWEPaNAW9cCTZP09lrbvPtqxMvv/0PlfOggMQZ6oHd858ZLNjflY 5YbnV3whrM90jUvFPuuwF/832Ht2y4KCJI59S/HkfWpFCDlg5H8f85CbG4XO3To4lGq4 9aij0R9JxrtvCx1MRC5277sl0BLHSIkvO5JqH8Bcg7tk3HnQt/3pi8l4HQ2l76jY98tN m8XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=bIe+oFaV; 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 x5si15044681qtj.13.2017.09.14.11.40.33 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 14 Sep 2017 11:40:33 -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=bIe+oFaV; 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]:49468 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsZ3v-0004fT-Fy for patch@linaro.org; Thu, 14 Sep 2017 14:40:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsYzB-0000Wz-45 for qemu-devel@nongnu.org; Thu, 14 Sep 2017 14:35:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dsYz6-0000cS-Aw for qemu-devel@nongnu.org; Thu, 14 Sep 2017 14:35:37 -0400 Received: from mail-pg0-x22d.google.com ([2607:f8b0:400e:c05::22d]:44794) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dsYz6-0000bW-4k for qemu-devel@nongnu.org; Thu, 14 Sep 2017 14:35:32 -0400 Received: by mail-pg0-x22d.google.com with SMTP id j16so127628pga.1 for ; Thu, 14 Sep 2017 11:35:32 -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=fmGan1ShCJ5GBnPRPye1s5iBqwpl8mHcISObIerH4So=; b=bIe+oFaVw4eeGNpcoMoHsGZy8HBwGA0H688NtODFj8WxUWqGBBqUPISnpbKwf9I/nm Xua+c8JJ3MssWiB+YdkeKKZs7I/rOGaOaG4dw0Sn92RvKHeAdWN9tkUPn7YkS7MkJc5d psBnDmD2HCxMMV3fDViuER1fhlM9+UIuuhVP8= 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=fmGan1ShCJ5GBnPRPye1s5iBqwpl8mHcISObIerH4So=; b=WqAAhbxyCk7fmRKfJ8HrilehSCMXNRQTNRr04vCdNy/T18V5ra6+4tqtXRrOCwEijb ecAk8vAXEd56mCTSBtACHsMUMelzoHweooJcDbdkSpVNPGb+njL/zl/CjgAmafbvFFgA GAZiOI7vYjlaatNzpqcKed5fgwv35zm3tDiTyG/xcovZybaWjEMZ87OazlqNnA/r7gIx 7NDTe51xSrl7nFzE/MnYzCXYCW1C6RYwldtjrMQijYQ2py6YAUysgVLT/M9OssxUq9fa evFzmmyBEbEUzdEOGhc5S0+gdwEXVUWk3YTu7/44l7wrtA2Da5YsCBL3hqDlWeOLh9Dw S0mQ== X-Gm-Message-State: AHPjjUjsNtyJoA9SoimvUQwQn9JTzgpltSWTXMp+s5PriNOxLd7oPuV/ ak2XGCvlJL0x+rAb5UeiSg== X-Google-Smtp-Source: ADKCNb4bWKywYOPqsSTR+AzCyM5aoGkeEThWcP5c3GSbXiuqvF31o4cCs7Dklj6WtMnU+K71uqEtJA== X-Received: by 10.99.7.205 with SMTP id 196mr21731285pgh.356.1505414130951; Thu, 14 Sep 2017 11:35:30 -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.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Sep 2017 11:35:30 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 14 Sep 2017 11:35:15 -0700 Message-Id: <20170914183516.19537-10-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::22d Subject: [Qemu-devel] [PATCH 09/10] target/sparc: 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: Mark Cave-Ayland Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Cc: Mark Cave-Ayland Signed-off-by: Richard Henderson --- target/sparc/cpu.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.13.5 diff --git a/target/sparc/cpu.c b/target/sparc/cpu.c index 0806d699e6..7eabf410de 100644 --- a/target/sparc/cpu.c +++ b/target/sparc/cpu.c @@ -24,6 +24,7 @@ #include "exec/exec-all.h" #include "hw/qdev-properties.h" #include "qapi/visitor.h" +#include "disas/capstone.h" //#define DEBUG_FEATURES @@ -99,8 +100,10 @@ static bool sparc_cpu_exec_interrupt(CPUState *cs, int interrupt_request) static void cpu_sparc_disas_set_info(CPUState *cpu, disassemble_info *info) { info->print_insn = print_insn_sparc; + info->cap_arch = CS_ARCH_SPARC; #ifdef TARGET_SPARC64 info->mach = bfd_mach_sparc_v9b; + info->cap_mode = CS_MODE_V9; #endif }