From nobody Sat Nov 15 12:42:14 2025 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=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1752560785; cv=none; d=zohomail.com; s=zohoarc; b=i+mkAu70QjzH6+7qtljukpKFCVpLXtaEbRu1fjw0XbjY1l1yD/lmRIbQEfKo2T8fdPLMPBwo8gEXHtzHHV1igCNRYc3T2uDRrjv6Z0uuDe8Ua1y37YW237ljxqhXEcke80SE2ZSQK5ppnaq5WJOrBpzEFIOm4ydM/+TWzc8DBLM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1752560785; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=cuDzbbwm2kJEj0yYBiGbuSIbCM9/3TFQdYicUYRD+Aw=; b=KtMXFS3iMA9gSZ2x2EFPuT5OoIURipgQhu/hcZHg6tgnI5FBo8BosmGsh06CZxZP+JoPw5EQpsNJ/Jwb+LX9vrY5OrL0jlNdx8uPFACZnLVZalUQzspKk177M7w5WiqRGvIxf1aXAsvt3Rz9PnimTvV7WrAJ59hR+FhhjCXd6KM= 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 1752560785512137.08535348765975; Mon, 14 Jul 2025 23:26:25 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ubZ1T-0002gR-IM; Tue, 15 Jul 2025 02:20:16 -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 1ubZ1J-0002Uj-Fe for qemu-devel@nongnu.org; Tue, 15 Jul 2025 02:20:06 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ubZ1H-00077E-0b for qemu-devel@nongnu.org; Tue, 15 Jul 2025 02:20:04 -0400 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-3a6cdc27438so4184325f8f.2 for ; Mon, 14 Jul 2025 23:20:02 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-454dd43912dsm153473015e9.2.2025.07.14.23.20.00 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 14 Jul 2025 23:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1752560401; x=1753165201; 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=cuDzbbwm2kJEj0yYBiGbuSIbCM9/3TFQdYicUYRD+Aw=; b=db9iws1+3pd+XR1Uplo6GtO9PTR7wI9gYJqGOuuWDzyRua4PJezdlSXIr7vGUf1v1m ilqaNw7xLXvcI4VfqTqTH6xi6sQZ2WbFENbgzbZzJxumlDJQ4ZY4o3PFvOVobB5HZM7D mqY2qjaVWWJXnU8Q7LjQeIhu6q1tMPhPdQFtBC1Lc4xRUvoHmiXoxKvhQS/iyZeYrx5H AY2aZHhygVKMesLDqpqM/BIe7b+5Sq1srYB1QYj1WQQ/A0mMeUXP6aEP8F7pq/0BwGg1 xze1RlZ6tM8nCmMGHEuGhaUa8RlQnDwHkfWt3L/vph4Ja457sNmqGBFvddB355sRrRa+ 4cqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752560401; x=1753165201; 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=cuDzbbwm2kJEj0yYBiGbuSIbCM9/3TFQdYicUYRD+Aw=; b=dRR08b/1r5GjSMSOma4t03TQdKJFwCDbDKwyJjDnTKn+JN2Gu8HEOfBf/TkelFzL+t wEUSMT26bf0owtuiuMHsAhPySLegyNNh8tCipzn3fBM5oblqWpZkLQyd0U53RAEdAjTO AoeRUcXjWt7oDIhCy5+K6hCdSGpr0zcGwpoc8COZ36MS5nzI4/j1FpNxD5ecJBo6x1qn Pp12AChgZ9UZmJlb9FlIEb2Do/fX3PmblYxbUpBqbv3LI2nkjb3jE7H7Li3YFcCiW1mB 6TXCprDGamk/yn7dLS6uAAAGe9hyBM5FNvVUkYk45dhqBZYRiH7ycsYaZ+ICgItN96/g T+Bg== X-Gm-Message-State: AOJu0YyVX/GxDivZNVdEcL6AZmZO0/ZuryRfWZXHk2+odaHTAGZKy/Kr j0NXHK/ikKPDvfOdFqDV+HKXVY75jSXNt4eHTXrP1t31PqLjX8Ia+1J7uo5fqPSKpkgTZM106WQ /EHW5 X-Gm-Gg: ASbGncsxyos6ow69nVZZQzWKNFRgggKbcaMPnkn6LggbEid/1sHqdosBkkIrAcluM34 sDKT/1qduN/oRT3saSOupZ7CQxJ9pvX117/HGHjLS5kSfX5ba3ftGN5D7gfwA+vckGsO7rP2qP5 sLKv43IT719NF2Gy+wQjFXbRIUgdf9XViFhHmfVDdI5Oxe+b/TaDRDiJnr58H5ekSfsO3KwDbSj RXuumtg4rmZLDu76Tr16z85p6vTzDU7UqBWTpxsPH/G5UYW945BxARsv6q/UW2pRPE1h07MbUJb /T+rKbeIagNtxzxA3hNO3Ts55hQ0Bh8ewFM3euqcFCeS7XFGJk+8a3+Bl0h+bAqjsnlisK9vKj3 L6V3kCOdLPqWrHYTZpHRpoD3zS6/UPfYJF3dwU32rhG5Sx5hEbHjx8qVdqLng1b87wrNW1Ds0 X-Google-Smtp-Source: AGHT+IH803WUgSzhwZmoBVziYExZUFLo7kt21Qg3JYwpUOp8Dq+pGXMaoNAfdekHb9avXTUDhLvYvg== X-Received: by 2002:a05:6000:2410:b0:3b5:f0af:4bb0 with SMTP id ffacd0b85a97d-3b5f2dd1547mr11682036f8f.23.1752560400824; Mon, 14 Jul 2025 23:20:00 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Paolo Bonzini , Jiaxun Yang Subject: [PULL 08/17] hw/mips: Restrict ITU to TCG Date: Tue, 15 Jul 2025 08:19:08 +0200 Message-ID: <20250715061918.44971-9-philmd@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250715061918.44971-1-philmd@linaro.org> References: <20250715061918.44971-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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=2a00:1450:4864:20::42e; envelope-from=philmd@linaro.org; helo=mail-wr1-x42e.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1752560786294116600 MIPS Inter-Thread Communication Unit is implemented using TCG. Check for TCG both in Kconfig and CPS source. Fixes: 2321d971b6f ("hw/mips: Add dependency MIPS_CPS -> MIPS_ITU") Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Message-Id: <20250702164953.18579-1-philmd@linaro.org> --- hw/mips/cps.c | 4 ++-- hw/mips/Kconfig | 2 +- hw/misc/Kconfig | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/mips/cps.c b/hw/mips/cps.c index 2a3ba3f58d2..e47695e2b0a 100644 --- a/hw/mips/cps.c +++ b/hw/mips/cps.c @@ -24,7 +24,7 @@ #include "hw/mips/mips.h" #include "hw/qdev-clock.h" #include "hw/qdev-properties.h" -#include "system/kvm.h" +#include "system/tcg.h" #include "system/reset.h" =20 qemu_irq get_cps_irq(MIPSCPSState *s, int pin_number) @@ -59,7 +59,7 @@ static bool cpu_mips_itu_supported(CPUMIPSState *env) { bool is_mt =3D (env->CP0_Config5 & (1 << CP0C5_VP)) || ase_mt_availabl= e(env); =20 - return is_mt && !kvm_enabled(); + return is_mt && tcg_enabled(); } =20 static void mips_cps_realize(DeviceState *dev, Error **errp) diff --git a/hw/mips/Kconfig b/hw/mips/Kconfig index b09c89a0175..f84fffcd323 100644 --- a/hw/mips/Kconfig +++ b/hw/mips/Kconfig @@ -76,7 +76,7 @@ config LOONGSON3V =20 config MIPS_CPS bool - select MIPS_ITU + select MIPS_ITU if TCG =20 config MIPS_BOSTON bool diff --git a/hw/misc/Kconfig b/hw/misc/Kconfig index c27285b47ab..4e35657468b 100644 --- a/hw/misc/Kconfig +++ b/hw/misc/Kconfig @@ -119,6 +119,7 @@ config STM32L4X5_RCC =20 config MIPS_ITU bool + depends on TCG =20 config MPS2_FPGAIO bool --=20 2.49.0