From nobody Tue Feb 10 16:22:11 2026 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=1694092571; cv=none; d=zohomail.com; s=zohoarc; b=fa/G43keJmsHdiNqCjEJMlF/JrJsAA33cMlRN/BZOx/NUL5wiZYb3lDF/iLMDMRFWS1M5rIyH3yHGkK2JNKnEhAllTH9ba53OPAKA9bL+ccaxepqVBUqr6efAPnSOyHSHyCPDJiBE0K5qqM2d1OTBH1QAYOFCqZhbURNTRV82Hw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1694092571; h=Content-Type: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=xO8PrK9ireQp6JlWOrTfu2NpnIcqw9jxYoX6Yf3VkkY=; b=YHE24fWmI9rVONKXYETQYtzdliBUY1wQ3I+cG9Bnja+4ceEn2DGdjvfn1bYO+EBhVL5ptwVNLoHRBHDAiiHVQ3Rpp3hoGFDnL7LBuswRSlTOJHRk7w1550kT8GtC4FyUyRCfhwdJtbu0uXgBkt3PTefVoFjkxe0MGH5xFj54ibk= 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 1694092571462143.96505266911402; Thu, 7 Sep 2023 06:16:11 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeEdT-0003QK-Om; Thu, 07 Sep 2023 09:01:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qeEdQ-0003Og-Qf for qemu-devel@nongnu.org; Thu, 07 Sep 2023 09:01:24 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qeEdO-0007P6-Bh for qemu-devel@nongnu.org; Thu, 07 Sep 2023 09:01:24 -0400 Received: from mail-lj1-f199.google.com (mail-lj1-f199.google.com [209.85.208.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-551-d-HNnDcqN96DQKJiuleuzA-1; Thu, 07 Sep 2023 09:01:14 -0400 Received: by mail-lj1-f199.google.com with SMTP id 38308e7fff4ca-2b961c3af8fso11327001fa.0 for ; Thu, 07 Sep 2023 06:01:08 -0700 (PDT) Received: from [192.168.1.174] ([151.48.237.81]) by smtp.gmail.com with ESMTPSA id x3-20020a05600c2a4300b003feea62440bsm2433877wme.43.2023.09.07.06.01.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Sep 2023 06:01:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694091681; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xO8PrK9ireQp6JlWOrTfu2NpnIcqw9jxYoX6Yf3VkkY=; b=DonoBV6ebovl0ch3QQ+LoHIfp8g5X7i5BmrPfqKOBkhxB2LhpynxhYASNRuUEc7If4od/G eWlUY/nakZo1UCu3HCoksCp4Dc6SqqHlBopO/K8UpR9lZ7vD2J4zpwsqLaaF8CD+WMRm7/ 4VgY2lcEqS0F/RGSvV8ELdHHBF6ZyGk= X-MC-Unique: d-HNnDcqN96DQKJiuleuzA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1694091667; x=1694696467; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xO8PrK9ireQp6JlWOrTfu2NpnIcqw9jxYoX6Yf3VkkY=; b=GCyD0lpMfZ7Gtr8QK51MIupIElLyFnop0azHUwayYSj8e2G1xXi+pAg8GcqSosXNi+ Y9VqObrVCTxUN4y7ydg4+d5Vcvy/n9a6VlCTqjU8xgZav5JsjyxU1BXR4p7OXTjBS3iv IwfemN2lQVcDt/jxnxCJI/BfWI5yYAgIJg5ZVEyMcsKN2QxfUn0V46Pg9+fyfazxwGG6 3URY3HtsC8HnhImostoDtRNIavsdnV0Q2nhPZDV/9ZzgtpEZK6T7ShY/EQ852jbvM8S7 7EcBjP59GAQ0VhcdFLpEJsSDgRiTE+dhMkUkbaiG7ST0kyTaBCeUXR06fBahnjt/1VJD 0j/A== X-Gm-Message-State: AOJu0YwvA2M5VyymngHGlAx7nvjOIac9WX/jPsDi/AxcCrcA4EUmWvij b/9XAiVeIjC1ROPTC9FFhT2kyotzZBZ9cvSqSLo6iRbhb/6rTnhtDuxzmonGxA1A8NLWDjLQL/Q QuqKbGShCzjhGeNNgaQdb/9GbdFlL0lKHc0HWCeZXgg8XVqUmWl4APdwTsAHF2hVoQJywcVX4w4 c= X-Received: by 2002:a19:674e:0:b0:501:b97a:9f50 with SMTP id e14-20020a19674e000000b00501b97a9f50mr4709117lfj.65.1694091667093; Thu, 07 Sep 2023 06:01:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFp8gpwesdoBiS5aDeFF8957Em9ZTyImvBU+/v+E9g0O2JYhuRTfSD14iJsGFcxOlnLVqx+Wg== X-Received: by 2002:a19:674e:0:b0:501:b97a:9f50 with SMTP id e14-20020a19674e000000b00501b97a9f50mr4709085lfj.65.1694091666543; Thu, 07 Sep 2023 06:01:06 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: Richard Henderson , Peter Maydell Subject: [PULL 26/51] configure: move --enable-debug-tcg to meson Date: Thu, 7 Sep 2023 14:59:35 +0200 Message-ID: <20230907130004.500601-27-pbonzini@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230907130004.500601-1-pbonzini@redhat.com> References: <20230907130004.500601-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1694092575562100001 Content-Type: text/plain; charset="utf-8" Reviewed-by: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Paolo Bonzini --- configure | 11 +---------- meson.build | 3 ++- meson_options.txt | 2 ++ scripts/meson-buildoptions.sh | 3 +++ 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/configure b/configure index f96f7359a83..afd6121b616 100755 --- a/configure +++ b/configure @@ -248,7 +248,6 @@ done =20 git_submodules_action=3D"update" git=3D"git" -debug_tcg=3D"no" docs=3D"auto" EXESUF=3D"" prefix=3D"/usr/local" @@ -727,13 +726,9 @@ for opt do # configure to be used by RPM and similar macros that set # lots of directory switches by default. ;; - --enable-debug-tcg) debug_tcg=3D"yes" - ;; - --disable-debug-tcg) debug_tcg=3D"no" - ;; --enable-debug) # Enable debugging options that aren't excessively noisy - debug_tcg=3D"yes" + meson_option_parse --enable-debug-tcg "" meson_option_parse --enable-debug-graph-lock "" meson_option_parse --enable-debug-mutex "" meson_option_add -Doptimization=3D0 @@ -933,7 +928,6 @@ cat << EOF linux-user all linux usermode emulation targets bsd-user all BSD usermode emulation targets pie Position Independent Executables - debug-tcg TCG debugging (default is disabled) =20 NOTE: The object files are built at the place where configure is launched EOF @@ -1684,9 +1678,6 @@ echo >> $config_host_mak =20 echo all: >> $config_host_mak =20 -if test "$debug_tcg" =3D "yes" ; then - echo "CONFIG_DEBUG_TCG=3Dy" >> $config_host_mak -fi if test "$targetos" =3D "windows"; then echo "CONFIG_WIN32=3Dy" >> $config_host_mak echo "QEMU_GA_MANUFACTURER=3D${QEMU_GA_MANUFACTURER-QEMU}" >> $config_ho= st_mak diff --git a/meson.build b/meson.build index 13f21fd24de..4c3918a34ec 100644 --- a/meson.build +++ b/meson.build @@ -2199,6 +2199,7 @@ config_host_data.set10('CONFIG_COROUTINE_POOL', have_= coroutine_pool) config_host_data.set('CONFIG_DEBUG_GRAPH_LOCK', get_option('debug_graph_lo= ck')) config_host_data.set('CONFIG_DEBUG_MUTEX', get_option('debug_mutex')) config_host_data.set('CONFIG_DEBUG_STACK_USAGE', get_option('debug_stack_u= sage')) +config_host_data.set('CONFIG_DEBUG_TCG', get_option('debug_tcg')) config_host_data.set('CONFIG_GPROF', get_option('gprof')) config_host_data.set('CONFIG_LIVE_BLOCK_MIGRATION', get_option('live_block= _migration').allowed()) config_host_data.set('CONFIG_QOM_CAST_DEBUG', get_option('qom_cast_debug')) @@ -4156,7 +4157,7 @@ if config_all.has_key('CONFIG_TCG') summary_info +=3D {'TCG backend': 'native (@0@)'.format(cpu)} endif summary_info +=3D {'TCG plugins': config_host.has_key('CONFIG_PLUGIN')} - summary_info +=3D {'TCG debug enabled': config_host.has_key('CONFIG_DEBU= G_TCG')} + summary_info +=3D {'TCG debug enabled': get_option('debug_tcg')} endif summary_info +=3D {'target list': ' '.join(target_dirs)} if have_system diff --git a/meson_options.txt b/meson_options.txt index aaea5ddd779..5d6b889554c 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -83,6 +83,8 @@ option('xen_pci_passthrough', type: 'feature', value: 'au= to', description: 'Xen PCI passthrough support') option('tcg', type: 'feature', value: 'enabled', description: 'TCG support') +option('debug_tcg', type: 'boolean', value: false, + description: 'TCG debugging') option('tcg_interpreter', type: 'boolean', value: false, description: 'TCG with bytecode interpreter (slow)') option('safe_stack', type: 'boolean', value: false, diff --git a/scripts/meson-buildoptions.sh b/scripts/meson-buildoptions.sh index 9da3fe299b7..5567fd29985 100644 --- a/scripts/meson-buildoptions.sh +++ b/scripts/meson-buildoptions.sh @@ -29,6 +29,7 @@ meson_options_help() { printf "%s\n" ' --enable-debug-mutex mutex debugging support' printf "%s\n" ' --enable-debug-stack-usage' printf "%s\n" ' measure coroutine stack usage' + printf "%s\n" ' --enable-debug-tcg TCG debugging' printf "%s\n" ' --enable-fdt[=3DCHOICE] Whether and how to find the = libfdt library' printf "%s\n" ' (choices: auto/disabled/enable= d/internal/system)' printf "%s\n" ' --enable-fuzzing build fuzzing targets' @@ -276,6 +277,8 @@ _meson_option_parse() { --disable-debug-mutex) printf "%s" -Ddebug_mutex=3Dfalse ;; --enable-debug-stack-usage) printf "%s" -Ddebug_stack_usage=3Dtrue ;; --disable-debug-stack-usage) printf "%s" -Ddebug_stack_usage=3Dfalse ;; + --enable-debug-tcg) printf "%s" -Ddebug_tcg=3Dtrue ;; + --disable-debug-tcg) printf "%s" -Ddebug_tcg=3Dfalse ;; --enable-dmg) printf "%s" -Ddmg=3Denabled ;; --disable-dmg) printf "%s" -Ddmg=3Ddisabled ;; --docdir=3D*) quote_sh "-Ddocdir=3D$2" ;; --=20 2.41.0