From patchwork Fri Feb 7 21:06:47 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 863001 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e42:0:b0:385:e875:8a9e with SMTP id r2csp533124wrt; Fri, 7 Feb 2025 13:07:12 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVSGbrAmYV++zFBYVQC6LSKdMbgXYkgRJkt5zJYoTTQCkCJ6mYHUc+FOuEZy33JHQZp4rm1Xw==@linaro.org X-Google-Smtp-Source: AGHT+IGMJJDVu9wOGzRvBq09GHQlfGechmUmdpA6VerLsvwZD8PyOv5yXWS0NrJ4fIdT9ln+hN2g X-Received: by 2002:a05:622a:4cc3:b0:45f:788:b1ad with SMTP id d75a77b69052e-47167a38d7fmr79614031cf.27.1738962432125; Fri, 07 Feb 2025 13:07:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1738962432; cv=none; d=google.com; s=arc-20240605; b=GfYurxlNtYyj9FjKVcJCM/ekec5qnM9fgOtLqhRO7rxpv2U6eJ6mOHUbbB4ICCayD2 8mEA9e/P/AAtZMGcZYdEYiOH9uaRBslrXElAOvVF9iFegIVAIn8Yy/kTEpp0YTcw06HE +jgaTiOm59lH3leA+RZeLF8PH/Sn80nOZPGsxb18gzu5BgZrQAExzrI37xEQ4Y7XWt/U d9ZxwsydU6SMeTUZxlKMrSoKyj5uoZjgw0+mbFTmNyIpRUR5d5FuWwESvt7ThWTqrDE6 I1Q/6d4u163F+7NlhVmA0xcLbAarmaSM3zDfGaoLk/dkcP6p2tMg8zk8Q8PmuyPP++e0 2q7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XkDk8OxqW6uxutlAZ9P73/1ySr9ma3Px3naV7Jdqb0w=; fh=WBfWBA4xhLBT7XcACU9php1VkQFXD3CDPq61lYOQNqc=; b=HknoIwiHYNApY8MphEX0IjRlcMVdVTd5kMhE72BrOLfwgfnW5F7629DNlFXQgDrh3X pziSBwAFsYaDYAVsFjYy6V0kTa6KbZAoyNgJAZLnu8GplayUdRvAaN7O42vHNYBlfprX +KK6rfqAvrhNSWlVp/Za8Efys1ksKhjiBqfESBxuQXx084vuF9fDFkSx1SNZEjweJhnJ GrxtIQeRkLxHRlyuc4cBakXopwkp2ZYW7J5mlE+74beeCqhbSdPsys/oXtxEePhQ5RDI as7Ox+qPXvW3vhUkXht3k8qjgMWkvkE1854mHkBZGArbyrZSHCiU1fPcU/9QtJmF28fJ qX5w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W0TujEVo; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-47153be1fe1si39173311cf.586.2025.02.07.13.07.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Feb 2025 13:07:12 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W0TujEVo; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tgVZ5-0007Y3-Ji; Fri, 07 Feb 2025 16:07:07 -0500 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 1tgVYz-00076G-0h for qemu-devel@nongnu.org; Fri, 07 Feb 2025 16:07:01 -0500 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tgVYx-00022o-Cu for qemu-devel@nongnu.org; Fri, 07 Feb 2025 16:07:00 -0500 Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-21f40deb941so45578195ad.2 for ; Fri, 07 Feb 2025 13:06:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738962418; x=1739567218; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XkDk8OxqW6uxutlAZ9P73/1ySr9ma3Px3naV7Jdqb0w=; b=W0TujEVoyu+aBNYNd4Tm0byOPJKyuLgLBOIXxRfP4ECIXnEQlSMaAs7QzSMZPuoVFn WtVZ07Y87A6yPtRo3zER9fA3d8qtZE66TfW0FPim8xZDngHQewXyqtJk9j5IWTZLW1TX ix9k01TE+ot+rgJHuen7yDnK4knKSs539mGqfa+ZKBLSzvnUu76RvdgB54KRelk0MXpl wjXLOfIY5XpcKOc7k0C37Kz6QLPeohJF4K2mPYYIIHxEDs9l3ioXjt8vbGEiQAY0jgWf x6+pgT6pogeZGhDaKAeSFkGeBR5XbnM/TJtdwqsuwqAO8HGaZm6+bMYqDAhIqoAv73QX FbzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738962418; x=1739567218; 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=XkDk8OxqW6uxutlAZ9P73/1ySr9ma3Px3naV7Jdqb0w=; b=A36TmPo2GsVA/j+6ZjNCPN9BMIaQGjUDjTKXuXWDtHeAg/AlCOD+99JG3VYys1Vg2B MxqGAeOImNe7tS1232dmeYoFRfuAzEC/eZm7gNc9wUOHWU/0rnu8PtlC5FUWCrIR5UiV +3blED+mu4FixnKLVTEocRuiv56L9b7bCYnYHpPPGoLbRU1py8zw21F0P9epINvtUhRV Dcjh8yDRxxq8ikM/z3XAc3SxMPeOudVa3XvZgCySdCJmGAoyb6GUmiAErCyzYo8oST9V DD8znDbhVfBhlo9SL1bIh0fKJG+X0KfuEyvtu0vhEE5vPOaSNrnJNkmBzovWOICNfKeX rc+Q== X-Gm-Message-State: AOJu0YxxaGQP//HUhzOuIqXWesqKbt8b+OK7aC7oGdTn3ZWv3WKysdOI BfPyYvzKqBOZMQuGM/gVaQNK/0mGqzwL2Q7r+JBXNZZJncw/D0GDjTtknr2GNi1bHPUg+ubxcZy x X-Gm-Gg: ASbGncsxXm/k3eq9twyukVgwhcZTArVQrLjYv3NkDW5VSFtayVpOOSR2K6epL2FtcQN CNh6xYuXMrrJ9oa4VrlB0+TWexD5CpMjOHh1g1wbR5FCB4kAEMx1FwSL80r/YKnwnjo9IXm//I9 rmVGLf+qBONWDw1CiBgb1g1jXg7LDSgJVfCfbgFTDGyObKtEU71Bj8iKme9zUYI+78s+j7vHV1s YbcwXgLVR4YJwFWjCfL5j8Q55ro+almahZepNf0jZHyl4njIRGv4qwNExNYkFWXrcic6lepHHvq 35QVI701ncxcq1oZdYgDyNCGs4TCyjiu/HPgGEvTgdyf5W8= X-Received: by 2002:a05:6a20:841e:b0:1ed:534e:38b1 with SMTP id adf61e73a8af0-1ee03b7618dmr8004619637.41.1738962417957; Fri, 07 Feb 2025 13:06:57 -0800 (PST) Received: from stoup.. (71-212-39-66.tukw.qwest.net. [71.212.39.66]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-ad51af64c1dsm3539043a12.52.2025.02.07.13.06.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2025 13:06:57 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, mark.cave-ayland@ilande.co.uk, berrange@redhat.com, philmd@linaro.org, thuth@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PATCH v4 1/9] meson: Drop tcg as a module Date: Fri, 7 Feb 2025 13:06:47 -0800 Message-ID: <20250207210655.16717-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250207210655.16717-1-richard.henderson@linaro.org> References: <20250207210655.16717-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62c.google.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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This reverts commit dae0ec159f9 ("accel: build tcg modular"). The attempt was only enabled for x86, only modularized a small portion of tcg, and in more than 3 years there have been no follow-ups to improve the situation. Reviewed-by: Thomas Huth Reviewed-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- accel/tcg/meson.build | 11 ++++------- meson.build | 18 +----------------- 2 files changed, 5 insertions(+), 24 deletions(-) diff --git a/accel/tcg/meson.build b/accel/tcg/meson.build index aef80de967..69f4808ac4 100644 --- a/accel/tcg/meson.build +++ b/accel/tcg/meson.build @@ -21,16 +21,13 @@ specific_ss.add_all(when: 'CONFIG_TCG', if_true: tcg_specific_ss) specific_ss.add(when: ['CONFIG_SYSTEM_ONLY', 'CONFIG_TCG'], if_true: files( 'cputlb.c', 'watchpoint.c', + 'tcg-accel-ops.c', + 'tcg-accel-ops-mttcg.c', + 'tcg-accel-ops-icount.c', + 'tcg-accel-ops-rr.c', )) system_ss.add(when: ['CONFIG_TCG'], if_true: files( 'icount-common.c', 'monitor.c', )) - -tcg_module_ss.add(when: ['CONFIG_SYSTEM_ONLY', 'CONFIG_TCG'], if_true: files( - 'tcg-accel-ops.c', - 'tcg-accel-ops-mttcg.c', - 'tcg-accel-ops-icount.c', - 'tcg-accel-ops-rr.c', -)) diff --git a/meson.build b/meson.build index 131b2225ab..e50a103f8a 100644 --- a/meson.build +++ b/meson.build @@ -322,12 +322,6 @@ if cpu in ['x86', 'x86_64'] } endif -modular_tcg = [] -# Darwin does not support references to thread-local variables in modules -if host_os != 'darwin' - modular_tcg = ['i386-softmmu', 'x86_64-softmmu'] -endif - ################## # Compiler flags # ################## @@ -3279,11 +3273,6 @@ foreach target : target_dirs if sym == 'CONFIG_TCG' or target in accelerator_targets.get(sym, []) config_target += { sym: 'y' } config_all_accel += { sym: 'y' } - if target in modular_tcg - config_target += { 'CONFIG_TCG_MODULAR': 'y' } - else - config_target += { 'CONFIG_TCG_BUILTIN': 'y' } - endif target_kconfig += [ sym + '=y' ] endif endforeach @@ -3642,7 +3631,6 @@ util_ss = ss.source_set() # accel modules qtest_module_ss = ss.source_set() -tcg_module_ss = ss.source_set() modules = {} target_modules = {} @@ -3803,11 +3791,7 @@ subdir('tests/qtest/libqos') subdir('tests/qtest/fuzz') # accel modules -tcg_real_module_ss = ss.source_set() -tcg_real_module_ss.add_all(when: 'CONFIG_TCG_MODULAR', if_true: tcg_module_ss) -specific_ss.add_all(when: 'CONFIG_TCG_BUILTIN', if_true: tcg_module_ss) -target_modules += { 'accel' : { 'qtest': qtest_module_ss, - 'tcg': tcg_real_module_ss }} +target_modules += { 'accel' : { 'qtest': qtest_module_ss }} ############################################## # Internal static_libraries and dependencies #