From nobody Sun May 5 20:41:35 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652714305; cv=none; d=zohomail.com; s=zohoarc; b=Jy4eWVQFA+YPfig/8GXyySH+8r1deGG/3Va/jLBU/4c/PMscNCpsRHnG9qxWCfo+pqvcocVbImmCzjlLPLryXUxn8Sg2qz2y+4/xdtfXPHtKP/5kXbxpSsejtEu/vY8Qk/dB93Wsvrer8ObOPFtLimmih80/etnmDSLC5yJYKKA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652714305; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Yc04DmIrdWqFUxElNJcQamGpuXRop+AjQTvHTWm6mo0=; b=Uy/1Z0nkU+0/PDWoHgInak4sPOaFF/SWsjQ1dxe/mUl47lRMSv52Ijf6iQxflCNdKLBd3mYT/jI85TeKHEdAWyYXuK6HQjql30BgHUdVIgE8dD89trtVyqxNggQOvGnLDqjilHh8ec/1XNLamM1RX+dyJ1vTvHoO4Rza3z64HBk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1652714305398465.8672812594407; Mon, 16 May 2022 08:18:25 -0700 (PDT) Received: from localhost ([::1]:60952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nqcUK-0002Ys-83 for importer@patchew.org; Mon, 16 May 2022 11:18:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqcB9-0006Qj-0Q for qemu-devel@nongnu.org; Mon, 16 May 2022 10:58:35 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:49201) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqcB5-0001Sl-As for qemu-devel@nongnu.org; Mon, 16 May 2022 10:58:33 -0400 Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-64-1-0eee3HPZWqg1jAwLQ2_Q-1; Mon, 16 May 2022 10:58:28 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1A02929ABA24; Mon, 16 May 2022 14:58:28 +0000 (UTC) Received: from thuth.com (unknown [10.39.192.239]) by smtp.corp.redhat.com (Postfix) with ESMTP id 10A6715088CE; Mon, 16 May 2022 14:58:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652713110; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Yc04DmIrdWqFUxElNJcQamGpuXRop+AjQTvHTWm6mo0=; b=SEzTNwTZO7mvJm0oieKRhQ69qmMOFbkRDYY9zYJvDLqW59HWM0nlVcHCbcNyDThyCYTjK0 G54sgOMTq3/o8hBxlmmeNMsP+T3rS2afcn2MkVYUVhXHnXDKoKmspBy0rxAp5m5W7aA7MV XXv5maVW1pilys9Ji1Ibxaw+5W0mu+s= X-MC-Unique: 1-0eee3HPZWqg1jAwLQ2_Q-1 From: Thomas Huth To: qemu-devel@nongnu.org, Richard Henderson Cc: "Daniel P . Berrange" , Paolo Bonzini Subject: [PATCH 1/3] tests/vm: Add capstone to the NetBSD and OpenBSD VMs Date: Mon, 16 May 2022 16:58:21 +0200 Message-Id: <20220516145823.148450-2-thuth@redhat.com> In-Reply-To: <20220516145823.148450-1-thuth@redhat.com> References: <20220516145823.148450-1-thuth@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652714307164100001 Content-Type: text/plain; charset="utf-8" The Capstone library that is shipped with NetBSD and OpenBSD works fine when compiling QEMU, so let's enable this in our build-test VMs to get a little bit more build-test coverage. Signed-off-by: Thomas Huth Reviewed-by: Richard Henderson --- tests/vm/netbsd | 3 ++- tests/vm/openbsd | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/vm/netbsd b/tests/vm/netbsd index 4cc58df130..45aa9a7fda 100755 --- a/tests/vm/netbsd +++ b/tests/vm/netbsd @@ -46,7 +46,8 @@ class NetBSDVM(basevm.BaseVM): "jpeg", "png", =20 - # libs: ui + # libs: ui + "capstone", "SDL2", "gtk3+", "libxkbcommon", diff --git a/tests/vm/openbsd b/tests/vm/openbsd index dc34b2718b..13c8254214 100755 --- a/tests/vm/openbsd +++ b/tests/vm/openbsd @@ -48,7 +48,8 @@ class OpenBSDVM(basevm.BaseVM): "jpeg", "png", =20 - # libs: ui + # libs: ui + "capstone", "sdl2", "gtk+3", "libxkbcommon", --=20 2.27.0 From nobody Sun May 5 20:41:35 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652715763; cv=none; d=zohomail.com; s=zohoarc; b=BXcGO9EMAp32xyOdtFVLlRuT/6EtarNtB+VWrFON8jQuvlGUWo1I5Vv832OQ4Lw4nsyE6+YWYZwoPm/27V6tiX7wPxaLDrijnZWrtZJc6zdWRBEM+XPmePj0R0wgO8pucPEwL3GV5fxEF2sJL8+Im0vh7BM4VWiuaT73yBCJBxQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652715763; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Lnh027vYirs441h5yeKyYQpB7TUAZOySRk8n5bydWcY=; b=m+Rq1YPH4VQ4uodVNbSeYeM1gJJbKdEcLBhYdMxIUJoP0Z+Ydho4MbXBO0NLhSYitfHaZh1F6yfAgVgvLd2lu5G00on9ovlqCnsPap5ijAxdq0lDWjDfrvILzRQgtlPQVng6+EU/st0x2kLD6MuR7RL+KyTYdeLTmE27CQCDjdI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1652715763964463.66247382115534; Mon, 16 May 2022 08:42:43 -0700 (PDT) Received: from localhost ([::1]:47520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nqcrq-0001DG-Pd for importer@patchew.org; Mon, 16 May 2022 11:42:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52938) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqcBA-0006Xu-5m for qemu-devel@nongnu.org; Mon, 16 May 2022 10:58:36 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:32552) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqcB8-0001T6-DF for qemu-devel@nongnu.org; Mon, 16 May 2022 10:58:35 -0400 Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-631-VZUlkUgSMYe8GVyvwqgOgg-1; Mon, 16 May 2022 10:58:30 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6B6A33C138A8; Mon, 16 May 2022 14:58:29 +0000 (UTC) Received: from thuth.com (unknown [10.39.192.239]) by smtp.corp.redhat.com (Postfix) with ESMTP id 67F8415088D0; Mon, 16 May 2022 14:58:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652713113; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Lnh027vYirs441h5yeKyYQpB7TUAZOySRk8n5bydWcY=; b=IzDH/PIxVS3KwEjw2mayI86nUDBYsNM31WyrQbtZaVFPX95sx9L1Rm13odKdkZ6XobtPh4 x33zxfqGyr9UpKXL1kvno52hS7dAKvieAL3NDWK5CLHVZ06lr/vDIBJ+UzD5vxjNPDq5KE 47gusvMMGEb+MxWJVJChGeb5Z30rP7E= X-MC-Unique: VZUlkUgSMYe8GVyvwqgOgg-1 From: Thomas Huth To: qemu-devel@nongnu.org, Richard Henderson Cc: "Daniel P . Berrange" , Paolo Bonzini Subject: [PATCH 2/3] capstone: Allow version 3.0.5 again Date: Mon, 16 May 2022 16:58:22 +0200 Message-Id: <20220516145823.148450-3-thuth@redhat.com> In-Reply-To: <20220516145823.148450-1-thuth@redhat.com> References: <20220516145823.148450-1-thuth@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652715764748100001 Content-Type: text/plain; charset="utf-8" According to https://lore.kernel.org/qemu-devel/20200921174118.39352-1-richard.henderso= n@linaro.org/ there was an issue with Capstone 3 from Ubuntu 18. Now that we removed support for Ubuntu 18.04, that issue should hopefully not bite us anymore. Compiling with version 3.0.5 seems to work fine on other systems, so let's allow that version again. Signed-off-by: Thomas Huth Reviewed-by: Richard Henderson --- meson.build | 2 +- .gitlab-ci.d/buildtest.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 9b20dcd143..63ea585702 100644 --- a/meson.build +++ b/meson.build @@ -2513,7 +2513,7 @@ capstone =3D not_found capstone_opt =3D get_option('capstone') if capstone_opt in ['enabled', 'auto', 'system'] have_internal =3D fs.exists(meson.current_source_dir() / 'capstone/Makef= ile') - capstone =3D dependency('capstone', version: '>=3D4.0', + capstone =3D dependency('capstone', version: '>=3D3.0.5', kwargs: static_kwargs, method: 'pkg-config', required: capstone_opt =3D=3D 'system' or capstone_opt =3D=3D 'enabled' and not ha= ve_internal) diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml index 0aea7ab84c..a4d43d743b 100644 --- a/.gitlab-ci.d/buildtest.yml +++ b/.gitlab-ci.d/buildtest.yml @@ -42,6 +42,7 @@ build-system-ubuntu: variables: IMAGE: ubuntu2004 CONFIGURE_ARGS: --enable-docs --enable-fdt=3Dsystem --enable-slirp=3Ds= ystem + --enable-capstone=3Dsystem TARGETS: aarch64-softmmu alpha-softmmu cris-softmmu hppa-softmmu microblazeel-softmmu mips64el-softmmu MAKE_CHECK_ARGS: check-build --=20 2.27.0 From nobody Sun May 5 20:41:35 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652714509; cv=none; d=zohomail.com; s=zohoarc; b=h5syq3SK+W7yRvg8lyy1ujOb21R6+IJxZGUTLaO3Gmn28kAfZLu+ufmN8R9+bnYcXcfvKilsYQt5sKUZlpNOnVCLp5OI+OU7lwxAsX3NCehiBtWU/dXLiOcndl6f10OQjssTyYejidFRkYdNOCdf2UK0Gq9gG+KYr6brO6uUXH4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652714509; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=aL/U5sWm7fQ6zQ3C0IFGLNubmghrl6iwTM5kCs1t86k=; b=XsYcR6oZBYs5+fjUJS/jhkCpR64n1P0gWCWack0qxWbXhrJwV5w6U+RpjdHdLp47Oax0x2Zh+kjdvNxGuxuoEBPEhn2fjGyf+VNMmYrECnkHT1OpfoxDZ/nELWTfzrBPvxeeuIrH7eQrx941pvht6tsIEDOV5SRtt5f3I7L3tqM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1652714509513383.2263995252531; Mon, 16 May 2022 08:21:49 -0700 (PDT) Received: from localhost ([::1]:43050 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nqcXc-0001RQ-4z for importer@patchew.org; Mon, 16 May 2022 11:21:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52940) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqcBB-0006Y1-7h for qemu-devel@nongnu.org; Mon, 16 May 2022 10:58:37 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:30278) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqcB7-0001St-Gk for qemu-devel@nongnu.org; Mon, 16 May 2022 10:58:35 -0400 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-641-nj9n6xDkMPGGzHxgve17Jg-1; Mon, 16 May 2022 10:58:31 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id EA08A185A7A4; Mon, 16 May 2022 14:58:30 +0000 (UTC) Received: from thuth.com (unknown [10.39.192.239]) by smtp.corp.redhat.com (Postfix) with ESMTP id B0FFA15088CE; Mon, 16 May 2022 14:58:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652713112; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aL/U5sWm7fQ6zQ3C0IFGLNubmghrl6iwTM5kCs1t86k=; b=X5CtcX6iY5+7K0m8MYdHHPloskWu0xqvyxWkSLcuZwx2PnILnCRBKzXNxQHv+IPhLdA99J OQ7yLL/KpjJ1M/Bd4M+A/KG+6NJGttYUaBkXIlqKxluGo/Svm1fXl8HEH1zITmW9SUbK8F /ABjRzOnezSvWzFgdPVZALZQ4efHtfw= X-MC-Unique: nj9n6xDkMPGGzHxgve17Jg-1 From: Thomas Huth To: qemu-devel@nongnu.org, Richard Henderson Cc: "Daniel P . Berrange" , Paolo Bonzini Subject: [PATCH 3/3] capstone: Remove the capstone submodule Date: Mon, 16 May 2022 16:58:23 +0200 Message-Id: <20220516145823.148450-4-thuth@redhat.com> In-Reply-To: <20220516145823.148450-1-thuth@redhat.com> References: <20220516145823.148450-1-thuth@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652714510521100001 Content-Type: text/plain; charset="utf-8" Now that we allow compiling with Capstone v3.05 again, all our supported build hosts should provide at least this version of the disassembler library, so we do not need to ship this as a submodule anymore. Signed-off-by: Thomas Huth Reviewed-by: Richard Henderson --- configure | 21 ------- meson.build | 113 ++-------------------------------- .gitlab-ci.d/buildtest.yml | 4 +- .gitlab-ci.d/windows.yml | 5 +- .gitmodules | 3 - capstone | 1 - meson_options.txt | 3 +- scripts/meson-buildoptions.sh | 5 +- 8 files changed, 11 insertions(+), 144 deletions(-) delete mode 160000 capstone diff --git a/configure b/configure index c8b5b99532..cec8d58a56 100755 --- a/configure +++ b/configure @@ -307,10 +307,8 @@ skip_meson=3Dno =20 # 1. Track which submodules are needed if test "$default_feature" =3D no ; then - capstone=3D"disabled" slirp=3D"disabled" else - capstone=3D"auto" slirp=3D"auto" fi fdt=3D"auto" @@ -869,14 +867,6 @@ for opt do --enable-uuid|--disable-uuid) echo "$0: $opt is obsolete, UUID support is always built" >&2 ;; - --disable-capstone) capstone=3D"disabled" - ;; - --enable-capstone) capstone=3D"enabled" - ;; - --enable-capstone=3Dgit) capstone=3D"internal" - ;; - --enable-capstone=3D*) capstone=3D"$optarg" - ;; --with-git=3D*) git=3D"$optarg" ;; --with-git-submodules=3D*) @@ -1568,16 +1558,6 @@ case "$fdt" in ;; esac =20 -########################################## -# capstone - -case "$capstone" in - auto | enabled | internal) - # Simpler to always update submodule, even if not needed. - git_submodules=3D"${git_submodules} capstone" - ;; -esac - ########################################## # check and set a backend for coroutine =20 @@ -2223,7 +2203,6 @@ if test "$skip_meson" =3D no; then test "$werror" =3D yes && meson_option_add -Dwerror=3Dtrue =20 # QEMU options - test "$capstone" !=3D auto && meson_option_add "-Dcapstone=3D$capstone" test "$cfi" !=3D false && meson_option_add "-Dcfi=3D$cfi" test "$fdt" !=3D auto && meson_option_add "-Dfdt=3D$fdt" test -n "${LIB_FUZZING_ENGINE+xxx}" && meson_option_add "-Dfuzzing_engin= e=3D$LIB_FUZZING_ENGINE" diff --git a/meson.build b/meson.build index 63ea585702..f9279746d2 100644 --- a/meson.build +++ b/meson.build @@ -2510,13 +2510,10 @@ genh +=3D custom_target('config-poison.h', ############## =20 capstone =3D not_found -capstone_opt =3D get_option('capstone') -if capstone_opt in ['enabled', 'auto', 'system'] - have_internal =3D fs.exists(meson.current_source_dir() / 'capstone/Makef= ile') +if not get_option('capstone').auto() or have_system or have_user capstone =3D dependency('capstone', version: '>=3D3.0.5', kwargs: static_kwargs, method: 'pkg-config', - required: capstone_opt =3D=3D 'system' or - capstone_opt =3D=3D 'enabled' and not ha= ve_internal) + required: get_option('capstone')) =20 # Some versions of capstone have broken pkg-config file # that reports a wrong -I path, causing the #include to @@ -2525,110 +2522,10 @@ if capstone_opt in ['enabled', 'auto', 'system'] if capstone.found() and not cc.compiles('#include ', dependencies: [capstone]) capstone =3D not_found - if capstone_opt =3D=3D 'system' - error('system capstone requested, it does not appear to work') + if get_option('capstone').enabled() + error('capstone requested, but it does not appear to work') endif endif - - if capstone.found() - capstone_opt =3D 'system' - elif have_internal - capstone_opt =3D 'internal' - else - capstone_opt =3D 'disabled' - endif -endif -if capstone_opt =3D=3D 'internal' - capstone_data =3D configuration_data() - capstone_data.set('CAPSTONE_USE_SYS_DYN_MEM', '1') - - capstone_files =3D files( - 'capstone/cs.c', - 'capstone/MCInst.c', - 'capstone/MCInstrDesc.c', - 'capstone/MCRegisterInfo.c', - 'capstone/SStream.c', - 'capstone/utils.c' - ) - - if 'CONFIG_ARM_DIS' in config_all_disas - capstone_data.set('CAPSTONE_HAS_ARM', '1') - capstone_files +=3D files( - 'capstone/arch/ARM/ARMDisassembler.c', - 'capstone/arch/ARM/ARMInstPrinter.c', - 'capstone/arch/ARM/ARMMapping.c', - 'capstone/arch/ARM/ARMModule.c' - ) - endif - - # FIXME: This config entry currently depends on a c++ compiler. - # Which is needed for building libvixl, but not for capstone. - if 'CONFIG_ARM_A64_DIS' in config_all_disas - capstone_data.set('CAPSTONE_HAS_ARM64', '1') - capstone_files +=3D files( - 'capstone/arch/AArch64/AArch64BaseInfo.c', - 'capstone/arch/AArch64/AArch64Disassembler.c', - 'capstone/arch/AArch64/AArch64InstPrinter.c', - 'capstone/arch/AArch64/AArch64Mapping.c', - 'capstone/arch/AArch64/AArch64Module.c' - ) - endif - - if 'CONFIG_PPC_DIS' in config_all_disas - capstone_data.set('CAPSTONE_HAS_POWERPC', '1') - capstone_files +=3D files( - 'capstone/arch/PowerPC/PPCDisassembler.c', - 'capstone/arch/PowerPC/PPCInstPrinter.c', - 'capstone/arch/PowerPC/PPCMapping.c', - 'capstone/arch/PowerPC/PPCModule.c' - ) - endif - - if 'CONFIG_S390_DIS' in config_all_disas - capstone_data.set('CAPSTONE_HAS_SYSZ', '1') - capstone_files +=3D files( - 'capstone/arch/SystemZ/SystemZDisassembler.c', - 'capstone/arch/SystemZ/SystemZInstPrinter.c', - 'capstone/arch/SystemZ/SystemZMapping.c', - 'capstone/arch/SystemZ/SystemZModule.c', - 'capstone/arch/SystemZ/SystemZMCTargetDesc.c' - ) - endif - - if 'CONFIG_I386_DIS' in config_all_disas - capstone_data.set('CAPSTONE_HAS_X86', 1) - capstone_files +=3D files( - 'capstone/arch/X86/X86Disassembler.c', - 'capstone/arch/X86/X86DisassemblerDecoder.c', - 'capstone/arch/X86/X86ATTInstPrinter.c', - 'capstone/arch/X86/X86IntelInstPrinter.c', - 'capstone/arch/X86/X86InstPrinterCommon.c', - 'capstone/arch/X86/X86Mapping.c', - 'capstone/arch/X86/X86Module.c' - ) - endif - - configure_file(output: 'capstone-defs.h', configuration: capstone_data) - - capstone_cargs =3D [ - # FIXME: There does not seem to be a way to completely replace the c_a= rgs - # that come from add_project_arguments() -- we can only add to them. - # So: disable all warnings with a big hammer. - '-Wno-error', '-w', - - # Include all configuration defines via a header file, which will wind= up - # as a dependency on the object file, and thus changes here will result - # in a rebuild. - '-include', 'capstone-defs.h' - ] - - libcapstone =3D static_library('capstone', - build_by_default: false, - sources: capstone_files, - c_args: capstone_cargs, - include_directories: 'capstone/include') - capstone =3D declare_dependency(link_with: libcapstone, - include_directories: 'capstone/include/cap= stone') endif =20 slirp =3D not_found @@ -3958,7 +3855,7 @@ summary_info +=3D {'bzip2 support': libbzip2} summary_info +=3D {'lzfse support': liblzfse} summary_info +=3D {'zstd support': zstd} summary_info +=3D {'NUMA host support': numa} -summary_info +=3D {'capstone': capstone_opt =3D=3D 'internal' ? c= apstone_opt : capstone} +summary_info +=3D {'capstone': capstone} summary_info +=3D {'libpmem support': libpmem} summary_info +=3D {'libdaxctl support': libdaxctl} summary_info +=3D {'libudev': libudev} diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml index a4d43d743b..e9620c3074 100644 --- a/.gitlab-ci.d/buildtest.yml +++ b/.gitlab-ci.d/buildtest.yml @@ -42,7 +42,7 @@ build-system-ubuntu: variables: IMAGE: ubuntu2004 CONFIGURE_ARGS: --enable-docs --enable-fdt=3Dsystem --enable-slirp=3Ds= ystem - --enable-capstone=3Dsystem + --enable-capstone TARGETS: aarch64-softmmu alpha-softmmu cris-softmmu hppa-softmmu microblazeel-softmmu mips64el-softmmu MAKE_CHECK_ARGS: check-build @@ -119,7 +119,7 @@ build-system-fedora: variables: IMAGE: fedora CONFIGURE_ARGS: --disable-gcrypt --enable-nettle --enable-docs - --enable-fdt=3Dsystem --enable-slirp=3Dsystem --enable-capsto= ne=3Dsystem + --enable-fdt=3Dsystem --enable-slirp=3Dsystem --enable-capsto= ne TARGETS: tricore-softmmu microblaze-softmmu mips-softmmu xtensa-softmmu m68k-softmmu riscv32-softmmu ppc-softmmu sparc64-soft= mmu MAKE_CHECK_ARGS: check-build diff --git a/.gitlab-ci.d/windows.yml b/.gitlab-ci.d/windows.yml index 47f6073773..cf7724b8e5 100644 --- a/.gitlab-ci.d/windows.yml +++ b/.gitlab-ci.d/windows.yml @@ -57,7 +57,7 @@ msys2-64bit: - $env:CHERE_INVOKING =3D 'yes' # Preserve the current working directory - $env:MSYSTEM =3D 'MINGW64' # Start a 64 bit Mingw environment - .\msys64\usr\bin\bash -lc './configure --target-list=3Dx86_64-softmmu - --enable-capstone=3Dsystem --without-default-devices' + --enable-capstone --without-default-devices' - .\msys64\usr\bin\bash -lc "sed -i '/^ROMS=3D/d' build/config-host.mak" - .\msys64\usr\bin\bash -lc 'make -j2' - .\msys64\usr\bin\bash -lc 'make check' @@ -90,7 +90,6 @@ msys2-32bit: - $env:MSYSTEM =3D 'MINGW32' # Start a 32-bit MinG environment - mkdir output - cd output - - ..\msys64\usr\bin\bash -lc "../configure --target-list=3Dppc64-softmmu - --enable-capstone=3Dsystem" + - ..\msys64\usr\bin\bash -lc "../configure --target-list=3Dppc64-softmmu" - ..\msys64\usr\bin\bash -lc 'make -j2' - ..\msys64\usr\bin\bash -lc 'make check' diff --git a/.gitmodules b/.gitmodules index f4b6a9b401..b8bff47df8 100644 --- a/.gitmodules +++ b/.gitmodules @@ -31,9 +31,6 @@ [submodule "ui/keycodemapdb"] path =3D ui/keycodemapdb url =3D https://gitlab.com/qemu-project/keycodemapdb.git -[submodule "capstone"] - path =3D capstone - url =3D https://gitlab.com/qemu-project/capstone.git [submodule "roms/seabios-hppa"] path =3D roms/seabios-hppa url =3D https://gitlab.com/qemu-project/seabios-hppa.git diff --git a/capstone b/capstone deleted file mode 160000 index f8b1b83301..0000000000 --- a/capstone +++ /dev/null @@ -1 +0,0 @@ -Subproject commit f8b1b833015a4ae47110ed068e0deb7106ced66d diff --git a/meson_options.txt b/meson_options.txt index 29c6b90cec..fcdc43f7db 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -252,8 +252,7 @@ option('virtfs', type: 'feature', value: 'auto', option('virtiofsd', type: 'feature', value: 'auto', description: 'build virtiofs daemon (virtiofsd)') =20 -option('capstone', type: 'combo', value: 'auto', - choices: ['disabled', 'enabled', 'auto', 'system', 'internal'], +option('capstone', type: 'feature', value: 'auto', description: 'Whether and how to find the capstone library') option('slirp', type: 'combo', value: 'auto', choices: ['disabled', 'enabled', 'auto', 'system', 'internal'], diff --git a/scripts/meson-buildoptions.sh b/scripts/meson-buildoptions.sh index 5d2172bfb4..7fc56d3f4a 100644 --- a/scripts/meson-buildoptions.sh +++ b/scripts/meson-buildoptions.sh @@ -16,9 +16,6 @@ meson_options_help() { printf "%s\n" ' --enable-block-drv-whitelist-in-tools' printf "%s\n" ' use block whitelist also in to= ols instead of only' printf "%s\n" ' QEMU' - printf "%s\n" ' --enable-capstone[=3DCHOICE]' - printf "%s\n" ' Whether and how to find the ca= pstone library' - printf "%s\n" ' (choices: auto/disabled/enable= d/internal/system)' printf "%s\n" ' --enable-cfi Control-Flow Integrity (CFI)' printf "%s\n" ' --enable-cfi-debug Verbose errors in case of CFI = violation' printf "%s\n" ' --enable-debug-mutex mutex debugging support' @@ -77,6 +74,7 @@ meson_options_help() { printf "%s\n" ' brlapi brlapi character device driver' printf "%s\n" ' bzip2 bzip2 support for DMG images' printf "%s\n" ' cap-ng cap_ng support' + printf "%s\n" ' capstone Whether and how to find the capstone li= brary' printf "%s\n" ' cloop cloop image format support' printf "%s\n" ' cocoa Cocoa user interface (macOS only)' printf "%s\n" ' coreaudio CoreAudio sound support' @@ -209,7 +207,6 @@ _meson_option_parse() { --disable-cap-ng) printf "%s" -Dcap_ng=3Ddisabled ;; --enable-capstone) printf "%s" -Dcapstone=3Denabled ;; --disable-capstone) printf "%s" -Dcapstone=3Ddisabled ;; - --enable-capstone=3D*) quote_sh "-Dcapstone=3D$2" ;; --enable-cfi) printf "%s" -Dcfi=3Dtrue ;; --disable-cfi) printf "%s" -Dcfi=3Dfalse ;; --enable-cfi-debug) printf "%s" -Dcfi_debug=3Dtrue ;; --=20 2.27.0