From patchwork Wed Jul 17 10:57:20 2024 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: 812997 Delivered-To: patch@linaro.org Received: by 2002:a5d:42c4:0:b0:367:895a:4699 with SMTP id t4csp728337wrr; Wed, 17 Jul 2024 03:58:34 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWOfKsMSlbDF35aykUs8V2IYv0sFVDMSGw64HxF4wQd8EfhuWCKTp2GrUcJd/gC807E0yyP5bzeCwuoXygE0TDI X-Google-Smtp-Source: AGHT+IEIflpCzPhpIqpxqljj/rNV39e+VcrU6dqISDu4RiEXTMxnPaXUqvGJ3tZvNGdWjcP/gG4V X-Received: by 2002:a05:622a:1981:b0:445:20b:7153 with SMTP id d75a77b69052e-44f86e31f26mr12990011cf.44.1721213913987; Wed, 17 Jul 2024 03:58:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721213913; cv=none; d=google.com; s=arc-20160816; b=IqBPhUe/wby2/tLWWAqacinLokA6k/iyfcOrS5u1/f0zXXE6HUkXk4ymXF52EFSzd7 RAQWojsInHfI273Z+MESRlNjXR18vWIfef/yZp9ZVodo072ys0RvmlBthCy0U6aLji5O oOo4PiT/nkuxzugoJikhMjn840AwPoVGCxnc+FJFWtbMzMwcHqFgNaNOX2teuKdcZ9Pu Uakh2qJ76UG8JVewHglD14M2J//8azhQ6pegzqAvTBdaWtwGp2meI6KSxDFg7bb0RJ+5 6wn52ir8IPgTUtH8dGFIFKZDykJd1q2F3V2S/pwNy5/waa6QPXAiuBjPQ1Vf6yU3TbmU tlmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=uWQ9swtHKmaOCXCNUZVXDCsGfJqeWobhkzplnSNVd9c=; fh=3DC2703P4xBxF1F4MVQfPS76oLaSUJt9TaUyDV5jf7I=; b=TvEssMKQdPb8tEIyXYVuRHvLDxIfPPg2+w68V4eYQN3XaYWjI/TQ+p4FgUkI2d52AL 2+4v+AqYKOimR7N3zrR6mShS6ppMWJJpYun8TeSF31REv3TvdvMnJCsmabt4lXuRJKE2 JI4YED7ARu/2HpWDN/x9ljRAYFIMKRq590Kf/kfJS5xiFYzInyWmaOthLfnzMhajHpcv lC2Vp7HH+Zbwbv+kF5FfV0LhU4M8JPiHTpT1nmByHprSeTqqtOp50UyRGTJE/v0S6f1R KJhxr/0kFRA5CX8OEN4R+szfXUKlZ/QRZg5IuqmejumeBy+bo0eEGnjwnsPwD36RzIAw me1Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YToaASXD; 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-44f5b834d8fsi95327431cf.795.2024.07.17.03.58.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Jul 2024 03:58:33 -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=YToaASXD; 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 1sU2MB-0003vb-MB; Wed, 17 Jul 2024 06:57:59 -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 1sU2M9-0003md-Ej for qemu-devel@nongnu.org; Wed, 17 Jul 2024 06:57:57 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sU2M7-0005f5-08 for qemu-devel@nongnu.org; Wed, 17 Jul 2024 06:57:57 -0400 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-367963ea053so5376159f8f.2 for ; Wed, 17 Jul 2024 03:57:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721213873; x=1721818673; 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=uWQ9swtHKmaOCXCNUZVXDCsGfJqeWobhkzplnSNVd9c=; b=YToaASXDkV4C+iCeXboIBwteD7hud5CWdRl8dYVyN1vOmHoN5mbxtFf6b81EB2krok ol6F4irt+UEMbVfLC9rIcwm1y9//VfynkzCtzyACbChFaEFwO9aJpjKOq/LWii/xb5NK 7BDag9K4240/lss4B60T7gYqEjSKbHCn2WcpEOuMZKor3d0iMP0GcbMNEsyWOmR+K0vI xUreYh2ChTE0/0FET1SdC1a9N5KQKgVPKC3dMFZmWCCe4UIoopgxAdzLtfV9MbDmkhPS +DmcPPvG1eS5XswQSQQXdL2NT7dsjgPsozzCj0DhSsPui/2Fl9APv9fBB9qdZRaTl7Nh e+wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721213873; x=1721818673; 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=uWQ9swtHKmaOCXCNUZVXDCsGfJqeWobhkzplnSNVd9c=; b=qjDnZ9v35YOBpk7JZTJNi3IVzocyTpiMiSp0F4miwjrny2GhqYKe1mGbc1AnpTSAus M9b9VSvYf0UNgH1ZypvOHdIt1cO+jjnb+06UEThaXLwSrt+I3PKIoce/ROVFR5TCdrN9 uiLrKfrduJnVh4oxaUREy39KIAXfY3ymM/W7uYx3rOd0enLgeBR4AlCuXKqPIQxeVefK Wo8vFTOrHddIw1Yqb7Kwp7lWnY0btN34qhBTK6Z9Bem8GecMxYHgbTz/DQFQdz+SEC2U DI2iJCWGGFLIkJRmUXsguBTTX/CvqhC7Bo/aQScle/+x4+Ah+O20gq2+60TbLlYQe4rT V3hw== X-Gm-Message-State: AOJu0YzrxoBls1vLIUYElNTLyyDtYiSepEU5qbgepRiAjKZt4RdINQ8o SO2shiW/FvaQ9Jdax00mKixwb4tZkR/VWbYOYWOhVr42GUGyK/37p9MAnyoTlJa10I1HxkUlwLq KjDP0DQ== X-Received: by 2002:adf:cd12:0:b0:368:255e:ab17 with SMTP id ffacd0b85a97d-368315f1f50mr1310879f8f.9.1721213873068; Wed, 17 Jul 2024 03:57:53 -0700 (PDT) Received: from localhost.localdomain ([176.187.208.21]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3680db0484dsm11522763f8f.110.2024.07.17.03.57.51 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 17 Jul 2024 03:57:52 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , =?utf-8?q?Alex_Benn?= =?utf-8?q?=C3=A9e?= , Anton Johansson , qemu-riscv@nongnu.org, Paolo Bonzini , =?utf-8?q?Phili?= =?utf-8?q?ppe_Mathieu-Daud=C3=A9?= Subject: [PATCH v4 5/8] target/mips: Restrict semihosting to TCG Date: Wed, 17 Jul 2024 12:57:20 +0200 Message-ID: <20240717105723.58965-6-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240717105723.58965-1-philmd@linaro.org> References: <20240717105723.58965-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=philmd@linaro.org; helo=mail-wr1-x429.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=unavailable 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 Semihosting currently uses the TCG probe_access API. To prepare for encoding the TCG dependency in Kconfig, do not enable it unless TCG is available. Suggested-by: Paolo Bonzini Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Anton Johansson --- target/mips/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/mips/Kconfig b/target/mips/Kconfig index eb19c94c7d..876048b150 100644 --- a/target/mips/Kconfig +++ b/target/mips/Kconfig @@ -1,6 +1,6 @@ config MIPS bool - select SEMIHOSTING + imply SEMIHOSTING if TCG config MIPS64 bool