From patchwork Thu Sep 14 18:35:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 9953683 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4A039603F3 for ; Thu, 14 Sep 2017 18:37:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 426AC29227 for ; Thu, 14 Sep 2017 18:37:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3477C2922C; Thu, 14 Sep 2017 18:37:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A77F22921F for ; Thu, 14 Sep 2017 18:37:45 +0000 (UTC) Received: from localhost ([::1]:49451 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsZ0c-0000Y6-H7 for patchwork-qemu-devel@patchwork.kernel.org; Thu, 14 Sep 2017 14:37:06 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsYz6-0000Rd-5H for qemu-devel@nongnu.org; Thu, 14 Sep 2017 14:35:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dsYz5-0000at-6R for qemu-devel@nongnu.org; Thu, 14 Sep 2017 14:35:32 -0400 Received: from mail-pg0-x22f.google.com ([2607:f8b0:400e:c05::22f]:55977) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dsYz5-0000a7-0k for qemu-devel@nongnu.org; Thu, 14 Sep 2017 14:35:31 -0400 Received: by mail-pg0-x22f.google.com with SMTP id b11so108961pgn.12 for ; Thu, 14 Sep 2017 11:35:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=ayqfgVAjAPTvZJ8LG9VO9fJHsDl69VJjp6sYegMC+xA=; b=DKism0jV2RNLm4ccnB89M5N+14TOmcRqyURndYKF2CS/tGBoSVM30Q2KG1lidI5k55 QVWKxOndrnh796FhufAQXS+lKWNdz/G8BIdDksN1ywnB2PMxDCSXErcrwEz8ISJSFSl8 nfNCIBYrzAug/YpJNoT+iSZnFdDP8udLAEEKA= 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:in-reply-to :references; bh=ayqfgVAjAPTvZJ8LG9VO9fJHsDl69VJjp6sYegMC+xA=; b=Ck/knbV0cFFb+CTUs/hrok5WSxTajntpgUjVKk5RpvpTLLaaj0eYi4HvozEA6ZU4II RU7JxzSGpvu9t41nLlkOOMF0iFbjolA8I9M4rn/crKeic0ka9hRjJJvOot8LA48XpUnc wyuZdXutXA+kMJjQq4uFSzi9XFOTOFKaTaOIcc2FG0zMUCiYqtW037vPxKV08KIU+AGV M1dPA3hnuTMu9IvPLhCs/J6k1O2a8WzeUybmwEemlTipGXZ0VmI/rhY44/SUzO+WmFGQ Ac+bHllF1qqPSkX21rSGMkRQ9yAKriLJspyma3H5osq6/GWKHlLgEBF/wcDJrotyl6MY LFJA== X-Gm-Message-State: AHPjjUiMGv0r/KhDPw2uLgoZwWgYtu36wgfS+1XQ5TUZZBxecGFiMnQw eAaiEj0hEhTgrbMxlq9idA== X-Google-Smtp-Source: ADKCNb6gcoIxAw1SquLHWHDuLwbs6TfNWtaw0S46FX6fUNQK3iIuPyBj3Xj9atJolv5b3Sy14z78UQ== X-Received: by 10.101.78.7 with SMTP id r7mr22566666pgt.64.1505414129713; Thu, 14 Sep 2017 11:35:29 -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.28 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Sep 2017 11:35:28 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 14 Sep 2017 11:35:14 -0700 Message-Id: <20170914183516.19537-9-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::22f Subject: [Qemu-devel] [PATCH 08/10] target/s390x: 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: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Richard Henderson --- target/s390x/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/s390x/cpu.c b/target/s390x/cpu.c index 74b3e4fd0d..a4f7ff3da8 100644 --- a/target/s390x/cpu.c +++ b/target/s390x/cpu.c @@ -42,6 +42,7 @@ #include "sysemu/sysemu.h" #include "hw/s390x/sclp.h" #endif +#include "disas/capstone.h" #define CR0_RESET 0xE0UL #define CR14_RESET 0xC2000000UL; @@ -172,6 +173,7 @@ static void s390_cpu_disas_set_info(CPUState *cpu, disassemble_info *info) { info->mach = bfd_mach_s390_64; info->print_insn = print_insn_s390; + info->cap_arch = CS_ARCH_SYSZ; } static void s390_cpu_realizefn(DeviceState *dev, Error **errp)