From patchwork Mon Jun 10 14:58:05 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: 803009 Delivered-To: patch@linaro.org Received: by 2002:adf:f147:0:b0:35b:5a80:51b4 with SMTP id y7csp1984271wro; Mon, 10 Jun 2024 07:59:33 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVpr+FUlbLZ9WYcnk/l4rx3ESaydOFDEdKi0Ty8DstAUghXJgW+1GvkPcvpjUf9Qahpio2MeZINKUV4NbBtLRY5 X-Google-Smtp-Source: AGHT+IFWWkokyvqckjmM3q3FRYctw8ie1nEdKhEcufxCjfGZKJOZicSariQWe7RpnOx6XhGeNSN+ X-Received: by 2002:a05:6870:4154:b0:254:a615:c597 with SMTP id 586e51a60fabf-254a615c79dmr5973206fac.5.1718031573102; Mon, 10 Jun 2024 07:59:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1718031573; cv=none; d=google.com; s=arc-20160816; b=pnU3xIiiBicJobR/Sohb75XarE2162c2fZ+PKd3mAzevN+MT0C1d7AMXT2zXsYbIk5 2zLjSEkYylTH/leA4N5uGj8hsGEsIJKzmUU/0xI9KB7WHcd/i+RCh1GOzajB6hprhXjM 3XJPWLmMphMB05DEXNyS/MrXc4rj8JjFuYO3J6Own1BpZy0TZc38I4TYopVyEGN+faw2 DwBe9caniPnGGwBWMv72st4Ui3WhLH1g1FH0cRHRvc71bC9pXJycj4JQJ7BCEpoJfMC2 gX3Vj2TmM7FKpAj7jOAO+hJ4ULOOE4KYpMtrw33yeB4RJ/3Mmv2e0Nz/F3ZcEfp3XMr7 NIcQ== 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=vpjWIbDhIPuc3n1+BZUtQ9kIxE4zzGjcELo7keAGuQE=; b=yKqIc+4zkSrIGqyGeZqc0S6/TRd99JglaEiZs7k+TFzoYey9WbJTNbJ+Bu5964oqlE 5gVT45Qfj2PDDVW4AfmMAL1jgB14Aq5YZjwNtUWMZXCF4JrTiNDutBTe3UvNXc8c3KSC k3hlaYZ7aqQQVpCnC3vg2z9EgauTyI8ej3xGynDRKiR+qTqYLqS3HlHX567iAxP4Txlr eDm6Owd05TFe1gFNdWzxYN9Pl5ZCrpxunUAA0RRWGSglMeqbAa9bJmbqgQgpiWvOuMrl 0jau6wGfXjLTWJeMq6kTu1y+0fqhxXrnw9Ti/yfVL/kgiAmsrkfTBVsKmrjDAFOE8mRg MopQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eomjwc4M; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-44038a6eb45si101579651cf.73.2024.06.10.07.59.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Jun 2024 07:59: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=eomjwc4M; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sGgTo-0008Gu-6z; Mon, 10 Jun 2024 10:58:40 -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 1sGgTi-0008EV-8u for qemu-devel@nongnu.org; Mon, 10 Jun 2024 10:58:34 -0400 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sGgTg-0004WN-NK for qemu-devel@nongnu.org; Mon, 10 Jun 2024 10:58:34 -0400 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-57c76497cefso2040892a12.1 for ; Mon, 10 Jun 2024 07:58:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718031510; x=1718636310; 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=eomjwc4Mggzbg48c0kjh42Ltp0iWg0nUEywKYPo9fYL+KFljzIVjZJ+9T5HzOXAG/l r9JMYGXee0jKapPzsTREd+OT+zFefCKapynhnIs0QxJ7V95vOWlxb6muCnh+p1RHrcjd Uui6haG8968yA6HQlJHx8nyDuL0ZrfIgQ+coSg4OWWY9zCggzsZfn5ossyzCAuZiHWTT eJP1lbIWFA1V4SujLokQyF7c13Ukh31LCD/pUsUXJAy1soIArgGmGjCU33egS1c1B/Az 4DLBTyQtM5z45cRAxzRK6lkDRSb+utmmSgETruCPgWRXzgqcPtAYNW5G+rxt9hZwjIdT I8+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718031510; x=1718636310; 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=AO0GBlrCnWpW+g1+Z0rjOFX6ieCWJPwZHyav5/3wUeg6b0HJG9KRkCMshuB5Y1gKEy DpyfES/cPQVdClKkA2npph7Maz4aFjFWrlZUnrSwflPPtAojIfALghs4pjzkEF7q3V7x sBIfbXNiJ07rmXAWF++GJ/JCs4gNtkGbk4oG24F0mxiZuAiJJrVbe2fzFn/5/TmRn8+a /D1J0mDgoaR04B3PnysLxjFNpJ8pMDC7p0LmTPOoqacKXCMa1e8bk5mENxnEhzfPziYg ZYXAEyFmxqJ+8EzfvXWCPAjXjhDiPkuNk5pxUjOPh8hNAPGNE7QgMdzT5AAII6KlCCe0 8TKg== X-Gm-Message-State: AOJu0Yyjh/IXoUI823fZnggVmKDZ397ra/8cq0vsd2A/GlxBUwA6m6kE gDms9IqlAIhq9yiw9hxbk542FhN8jfLs4GEAIZ0rrWHSM2HKym1yoeBp+oXmbEdLJNWmefbdSQl t X-Received: by 2002:a17:906:eea:b0:a68:e7df:350b with SMTP id a640c23a62f3a-a6cd7891b58mr633603366b.35.1718031508926; Mon, 10 Jun 2024 07:58:28 -0700 (PDT) Received: from m1x-phil.lan ([176.176.129.242]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f20563a26sm123065266b.129.2024.06.10.07.58.27 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 10 Jun 2024 07:58:28 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, Paolo Bonzini , =?utf-8?q?Al?= =?utf-8?q?ex_Benn=C3=A9e?= , Anton Johansson , Richard Henderson , Max Filippov , Laurent Vivier , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v3 3/5] target/mips: Restrict semihosting to TCG Date: Mon, 10 Jun 2024 16:58:05 +0200 Message-ID: <20240610145808.2267-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240610145808.2267-1-philmd@linaro.org> References: <20240610145808.2267-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::52a; envelope-from=philmd@linaro.org; helo=mail-ed1-x52a.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, T_SCC_BODY_TEXT_LINE=-0.01 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 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