From patchwork Thu Apr 3 23:49:06 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 877994 Delivered-To: patch@linaro.org Received: by 2002:a5d:6dae:0:b0:38f:210b:807b with SMTP id u14csp3527741wrs; Thu, 3 Apr 2025 16:52:17 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWorgxJTpKOWm4cvGCrzkkJ2SQyv0smtnRIbgTH9ED9HYDNORw4Yau1Ipb2LKB+V08tmBICZg==@linaro.org X-Google-Smtp-Source: AGHT+IH0IYfXF/7o10NqcjdeAKHxnf5SbnPWlt3nJZvlSNSswIFiUejY1YyuSjhSUpvcrBvKIys0 X-Received: by 2002:a05:6214:e86:b0:6e8:fa72:be51 with SMTP id 6a1803df08f44-6f05850ca4bmr14935316d6.19.1743724337485; Thu, 03 Apr 2025 16:52:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1743724337; cv=none; d=google.com; s=arc-20240605; b=ecwQ3vaKLyeSxC5yKq1245VmqU8MfY+OPxXBEwi0GEQF/o/oJ2NRBObRRJ0OR+I2u6 l161DjVzKf//IpjaPQJbAi0oLtWXEHsD3HNVwibIooS9553Vpk5KaJkg1EvqTthjyrOF BiEoZs+zBz1lf1tmb4AcUZlEWbpTacfLITziw8FkNe2eosQYkeBpseHODFp1FHPjuQIs clZKL/boUGg6rGj3AtideHiQYeYY2muW5fG25Tz3Z+6MsI/y1Qoc7UpSlGiHs5E1e9db WlkrCJi6HwllcbMe9jhmzfnHbySoolw/OZDWdWS+M6SyBZZI8b9BbPiaYV3LRF+DttKl XiBQ== 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=0ViYtgj7vvi4iKxNJjOBDXGos3WgZtYMTvrMpDjjoLI=; fh=ISslU+6AOAPvfm3mmMuq/p0l7xeUGlnJLjUVX+iCVao=; b=KddLEredpHzBiuz2WNypvQngpXyS1bZlcqE5jzvIov2F5PdiNdHNRJpMuKP+cmsa0W jjf2S0WcFLILPQRT9MwGiFPAa+zehwbiol0PsUVT5RKwFd7RxL0f3uSFhcE+LS2YhAB+ 6+dhQZcZ0QWGvPvvtJmWGtM+tHckNHQEP06eXJcE4nMK6CbRQSvfbAxrnn4y8Uc4s9p7 x4xqyTaZoFe4R1Ho68f9QMD3hs+by6osQS7Xj67Ivfb3J8oG68uWphn8QPxZs3rKiKy9 cO2truwzynR/VB0vZOWKn4GVvU0lo8J2pWj/c1P85JBtKzFC2vtGtux3j7zheq18n0Y3 rp2Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xb2Z9jb1; 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 6a1803df08f44-6ef0f15d479si21755386d6.509.2025.04.03.16.52.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 Apr 2025 16:52:17 -0700 (PDT) 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=xb2Z9jb1; 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 1u0UKn-00027S-0P; Thu, 03 Apr 2025 19:50:57 -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 1u0UKP-0001kq-6N for qemu-devel@nongnu.org; Thu, 03 Apr 2025 19:50:39 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u0UKM-0000j7-UO for qemu-devel@nongnu.org; Thu, 03 Apr 2025 19:50:32 -0400 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-43cf034d4abso15455455e9.3 for ; Thu, 03 Apr 2025 16:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743724226; x=1744329026; 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=0ViYtgj7vvi4iKxNJjOBDXGos3WgZtYMTvrMpDjjoLI=; b=xb2Z9jb1yfmTfXQjif2q6Sk/hODa0CN6YFAKG8iVT7k90sFlu0gBOm36gS4X8AYCz8 ObAwakA4T/npMF0mr2UReLBWg098OAjKtNChS+AL6u7dlfME0S9sbJ6+4Zvd10pQEvl+ o/G6HBDzyZCYEGJeB5pzwOJKswUpiPy2lz6O8L499BSYPEFAG6O/VTtmnrujBNJYhnz0 oDT0wnuKbIGyTvFBLSXqbk+yb9ervs3PhRT8ybH81VQaf+QeHUQcabRESSTAWG6uHPzt 4Fq8uMAwhKY6Rh5ZahSt78MyJjGEy3FsfuYSGt7ekCDmTBOY1KPvIn4Gohir3kkOD+Ql LQ6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743724226; x=1744329026; 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=0ViYtgj7vvi4iKxNJjOBDXGos3WgZtYMTvrMpDjjoLI=; b=GjBUZdQ21SLoxJz6FpKeR0ncM4+D9geTsCSv58N8QAu7+LYOgQtO5rHShldNcSQqvY 84k8ZWHomVuAxua2lngmjdlI9e0fxoHECKbsI1Fqrh3w6fifqydj7Jqw3dVdE56LVUEy t1b8nO00DQonMM9Bzno89QWGGuFyTQfvU21ll5yVtEvQyzRJj3xDrdC3/736t7oBQt1D RU/r6+LYQ56fa0sM3hkHciEraDBlSlLJwGXQnwdn5Lsj1r5yvFnie0QRKKaEP0KaV9L7 BQ3ofUNENXsYyLbl9q+otB9hwuyH0ORmvYmbGYuZ+xrMnmXTvUpIj+hMWMF6c35vIysC 6jLQ== X-Gm-Message-State: AOJu0Ywb5F+1X7Obix9whc5C76PgoUToJ3+t6aMSKYqcAhz3fcDSKwAz O2LF6jdnFasncm0EOZJP0s9bOGa2vUclFJo6wdSlhz31u+Xg60WIZbCI3mXOZfSWJAXFORP48bs e X-Gm-Gg: ASbGnct6vicImPsWhkzGTvJgavLWeLp5nbzz9E5xGuG404dKXg5KtHllFIaL1aRqZ/K Y2S6Uz78+ttPUGEl5TCBpPmXSabrdL+r1feVEjOsAVd7XTxttCwavoM3vckEqx2CNZ9jrPAHD4E UBwIp+06RDfKtJb/bkEb9CW1rf/Wt+S5wuTFt29/yu7EVADgLMTr+sQZGnVyeyQadc4gfc2I0RG WCyFB44r6P9b0zs6fPfxycDwNzPWw6HIoNBQc7cMG0aEgntrvaV3peDPKURDePfAqmnCNDkS0Sm 9DCRNNO42kzkAspVcMDKxr/bQ53OIp5PVvcBh6aK1UTfEKrDnV7loH+ho58dIQ3yjoooElOxQM9 qwRrWj0iBKc+2dG+eSOs= X-Received: by 2002:a05:600c:3494:b0:43d:4686:5cfb with SMTP id 5b1f17b1804b1-43ecfa0672cmr7561775e9.27.1743724226482; Thu, 03 Apr 2025 16:50:26 -0700 (PDT) Received: from localhost.localdomain (184.170.88.92.rev.sfr.net. [92.88.170.184]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-39c2fe9875dsm2952781f8f.0.2025.04.03.16.50.25 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 03 Apr 2025 16:50:25 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , Markus Armbruster , Richard Henderson , Pierrick Bouvier Subject: [RFC PATCH-for-10.1 11/19] accel/tcg: Replace CPU_RESOLVING_TYPE -> target_cpu_type() Date: Fri, 4 Apr 2025 01:49:06 +0200 Message-ID: <20250403234914.9154-12-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250403234914.9154-1-philmd@linaro.org> References: <20250403234914.9154-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=philmd@linaro.org; helo=mail-wm1-x32f.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 Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Pierrick Bouvier --- accel/tcg/tcg-all.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accel/tcg/tcg-all.c b/accel/tcg/tcg-all.c index bf27c5c0fb3..a13cb39644f 100644 --- a/accel/tcg/tcg-all.c +++ b/accel/tcg/tcg-all.c @@ -35,6 +35,7 @@ #include "qapi/qapi-types-common.h" #include "qapi/qapi-builtin-visit.h" #include "qemu/units.h" +#include "qemu/target_info.h" #if defined(CONFIG_USER_ONLY) #include "hw/qdev-core.h" #else @@ -44,7 +45,6 @@ #include "accel/tcg/cpu-ops.h" #include "internal-common.h" #include "cpu-param.h" -#include "cpu.h" struct TCGState { @@ -73,7 +73,7 @@ bool qemu_tcg_mttcg_enabled(void) static void mttcg_init(TCGState *s) { - CPUClass *cc = CPU_CLASS(object_class_by_name(CPU_RESOLVING_TYPE)); + CPUClass *cc = CPU_CLASS(object_class_by_name(target_cpu_type())); bool mttcg_supported = cc->tcg_ops->mttcg_supported; if (s->mttcg_enabled == ON_OFF_AUTO_AUTO) {