Message ID | 20250306154737.70886-54-philmd@linaro.org |
---|---|
State | Accepted |
Commit | f2d4df439e0b2c2c3cebf792a7966466c9d97b52 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:ab3:6e57:0:b0:290:25b2:841c with SMTP id w23csp530894ltm; Thu, 6 Mar 2025 08:05:33 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXBNBDxWuDQx3uBnfKEpZ2RG0VTnucGH4OLpURkgSrQjOiV/kDRM39tcHb+tiDHPsq8FOSiIA==@linaro.org X-Google-Smtp-Source: AGHT+IETgF+JV44QBLaNX5ry2CqNXjv/46C1wu7CcvUF5pj6hURFQeu8EQUaROfGdfsuaBLGJlDi X-Received: by 2002:a05:622a:1446:b0:474:efcd:535 with SMTP id d75a77b69052e-4750b43c17amr118857991cf.16.1741277133176; Thu, 06 Mar 2025 08:05:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1741277133; cv=none; d=google.com; s=arc-20240605; b=dJxu/DQKt/g7Day/PASJDcoR5k5OJpvGdUaoGwhdU1llOZolF5AyZsO53y+kQYLvkU Fm5DkwsyvurQ9jFBwk9lM+g1uWXtthAOisnLY8q3ZZTNKfA4LnhlwFhCIzYeVfKL4eTd q78cQHzSfVDoDRvC48cl8yFkYiMmuFkjl2yK+yFTrbt+oEKZiOqbO1EthPaBKxwRWcg9 kYlxOvKq/qI7N94HvzFMcwwAZt0Y7lB1Cc7uiFzkO/56m0KWkUD5wf4M37o/11hGPqMU gPKEv/ZSa8QbPO4+z3sDjXu+JKjvuvgQsu5R261HusVlQ1UVD7I+KlhoyS1ZDHyeJwpe WAjQ== 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:to:from :dkim-signature; bh=isFVV4mWD6JRdhzxnOMLbfC93cakN53tVgpDr87aOmk=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=b5nE6mKIUxjj3vORFuwfZqDqwaxXGibRVQYBWotwacNyTZsHFDstsoP1TXQToddugc 4n4KpUwA5sqgnF0LwqlAeEnyBs8taAKp/Jiv48hav3PpJz3rg9u20bmb9PwQKUWNvuBk WDTV3bmO8dPcIf4bymFCWe6wwYFdBgaGir1rOQviDPN98emivKFEwpwte81gtZoKLGoH ix7dP/kCbIi9cxVsVdzCuPkoSfmdCKvdjulFZB63jFlnsS1Fwg/odS7Qmne+4qE7oJTO YKBOdvxFLl+PXd6BE/ZEnBXaEXbEkFp6S1I8cjMicROrbdVcIh1AW/Hi9FmtyZB4Mcl0 TcUw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vUBfsgaU; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-4751db1e607si13700381cf.427.2025.03.06.08.05.32 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 06 Mar 2025 08:05:33 -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=vUBfsgaU; 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 <qemu-devel-bounces@nongnu.org>) id 1tqDW7-0005Z3-Mn; Thu, 06 Mar 2025 10:52:11 -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 <philmd@linaro.org>) id 1tqDVe-0004ZQ-35 for qemu-devel@nongnu.org; Thu, 06 Mar 2025 10:51:42 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1tqDVb-0006n7-OF for qemu-devel@nongnu.org; Thu, 06 Mar 2025 10:51:41 -0500 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-43bd5644de8so9768635e9.3 for <qemu-devel@nongnu.org>; Thu, 06 Mar 2025 07:51:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741276298; x=1741881098; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=isFVV4mWD6JRdhzxnOMLbfC93cakN53tVgpDr87aOmk=; b=vUBfsgaUEfPseEAjWTIwxqlMxsFi1NT8O3mOH7GwbkAKFxXqqlZ7TSYX7E+L462Q1g vkkRiK8zX4UxpTJNNgeUd32X59PJRiG3CQmCKhVjwXHX+6zRiGnNcKOObP0ZGGPFLMqs YRwghAcP2dBBAJvtNBVSoUiPsNbypy74p9eh7KB8TgICaf8pGiYfBySy1XKGyKMLG2i6 XvnYN6mcY4857sFCyN+HNDpUacmbtZBE4AnY0/hj9fuBV51QLR/ET6WiRhuIifFfRfqF 5unc1/aVgjAq0lgtPDXQpdkrJvzSyE1QhzkP6UVGGyzsFthy8x+iHNcqH3QwGs6lMKNu 1bAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741276298; x=1741881098; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=isFVV4mWD6JRdhzxnOMLbfC93cakN53tVgpDr87aOmk=; b=b7H/GTcyEEd9p2vnrpxESEdFeYNsdtGiyjwEIEoPLoCjoBsO1oA6hoKZbLoInkbE4U WbreuMF/37OZ1rN3QloofPNj2jJIZqBZTRp3sSSjTposdMm8QfYNaR+gNyeQ9jdYlQRc BDNSMFPI+qDX0CIc9bEwh+mRt+vMX40gUHzaE4valU4ErLaouWqakocbENSijZv5iUdY wiSnnVhjUWjc+l/QAwHW7Pcnk9vUMaVHmY0eK7Vnzv7/5joOFRdjt5HeTAlXWuwqwXE+ gOBOcXiXzfQTT33d99zb/zdnpTUCm6q/8WYKmIQTbChc1eIPZ2R+CyhQni+yCpBXv5IC F//Q== X-Gm-Message-State: AOJu0YypB+7eTAco7jLsnnoalMiFSwtDwZI9Q9VhKBWVHKma0j/KphYC EV2zfUB+Lm2ls2k+xpkqo613CyXtNBfaCxOWGdbFX5Lq1zALD3j5woBVIG0WnXomYrq5FabGSi3 7++Q= X-Gm-Gg: ASbGncsgK0WdiuuP0of4GOLgVKsdDaQcHz6mclKgr8eX0uGH7XCcQV+m++iVgjLmhB3 OzH5UPqPIFTVknZ/ToYvN8VHyh96ZKjkEEesa8gvXu+Vjl9M3U1Z0PO0UGd/VeCvgI/HhQ8Odtq YDD/PH0CnJFrb377AE/B+RFsYm7pqYppSvojroIa2dmBCU0EGiRv+Y0tZkhLXRs0sv7wtGfk0L6 8P8ZzjdC9epTDR97UmxH2/9clUMrqQ8IRdj3nPZKmZiX0wrCz/DLwJzvKLDqD/o+Jl6EWfOqJ7W 0XdlvvqLYz/d+IiVDQjDtXK6Pnb4qwaTr+mMl6kXE/T4NmdpT0X22s5so/e2tW/JOuD7zG/yaup t3MVzkEIqV4Gz/oC40H4= X-Received: by 2002:a05:600c:1d0f:b0:439:9b80:ca6f with SMTP id 5b1f17b1804b1-43bd292da03mr90504865e9.5.1741276297665; Thu, 06 Mar 2025 07:51:37 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3912bfbab43sm2455333f8f.15.2025.03.06.07.51.37 for <qemu-devel@nongnu.org> (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 06 Mar 2025 07:51:37 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Subject: [PULL 53/54] system: Open-code qemu_init_arch_modules() using target_name() Date: Thu, 6 Mar 2025 16:47:35 +0100 Message-ID: <20250306154737.70886-54-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250306154737.70886-1-philmd@linaro.org> References: <20250306154737.70886-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=philmd@linaro.org; helo=mail-wm1-x333.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
[PULL,01/54] qemu/compiler: Absorb 'clang-tsa.h'
|
expand
|
diff --git a/include/system/arch_init.h b/include/system/arch_init.h index 5b1c1026f3a..d8b77440487 100644 --- a/include/system/arch_init.h +++ b/include/system/arch_init.h @@ -27,6 +27,4 @@ enum { extern const uint32_t arch_type; -void qemu_init_arch_modules(void); - #endif diff --git a/system/arch_init.c b/system/arch_init.c index d2c32f84887..b1baed18a30 100644 --- a/system/arch_init.c +++ b/system/arch_init.c @@ -22,7 +22,6 @@ * THE SOFTWARE. */ #include "qemu/osdep.h" -#include "qemu/module.h" #include "system/arch_init.h" #ifdef TARGET_SPARC @@ -40,11 +39,3 @@ int graphic_depth = 32; #endif const uint32_t arch_type = QEMU_ARCH; - -void qemu_init_arch_modules(void) -{ -#ifdef CONFIG_MODULES - module_init_info(qemu_modinfo); - module_allow_arch(TARGET_NAME); -#endif -} diff --git a/system/vl.c b/system/vl.c index 8f776684ec8..04f78466c41 100644 --- a/system/vl.c +++ b/system/vl.c @@ -26,6 +26,7 @@ #include "qemu/help-texts.h" #include "qemu/datadir.h" #include "qemu/units.h" +#include "qemu/module.h" #include "exec/cpu-common.h" #include "exec/page-vary.h" #include "hw/qdev-properties.h" @@ -78,6 +79,7 @@ #include "hw/block/block.h" #include "hw/i386/x86.h" #include "hw/i386/pc.h" +#include "hw/core/cpu.h" #include "migration/cpr.h" #include "migration/misc.h" #include "migration/snapshot.h" @@ -2885,7 +2887,10 @@ void qemu_init(int argc, char **argv) os_setup_limits(); - qemu_init_arch_modules(); +#ifdef CONFIG_MODULES + module_init_info(qemu_modinfo); + module_allow_arch(target_name()); +#endif qemu_init_subsystems();