From patchwork Mon Jun 10 14:58:06 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: 803007 Delivered-To: patch@linaro.org Received: by 2002:adf:f147:0:b0:35b:5a80:51b4 with SMTP id y7csp1984212wro; Mon, 10 Jun 2024 07:59:26 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUeQOSzaIZVLdkNiN0T0U6w/mLd+J4sb8M0xrDUirhf63oYcQNM6FpFJg7nM3enx4dKmDaSkZnAu4SfWWlPeoTA X-Google-Smtp-Source: AGHT+IG1Iz3FdA+H8QJNpxNNyYpbSqHAEE+n5I5LTTI4wBckw9eI7HtgA37bAFQMxjJSBwx02blj X-Received: by 2002:a25:804a:0:b0:dfb:912:970f with SMTP id 3f1490d57ef6-dfb091298f1mr6909778276.63.1718031565777; Mon, 10 Jun 2024 07:59:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1718031565; cv=none; d=google.com; s=arc-20160816; b=wumlEQAU076KZpgV7UrOqYHA+yZueCbMJBDv1tvuo0JV6vzOHRkmBg1Y0SSUef6q9d T7FrwzGmpccFJ4StBDCExv8Nqr/ySpfU8B/VzKOfPqoLd3UDh5VYt1k3W5rQtHQyPLmp 6sm4eIHtRDKguIRNY5Fu6Zzj0SSuv0Lw6kFUXepA8BuPyHFX815aIT3FO/4PHOL4rtvL vMYK6IrRuN+qMj6/VLPkXMNZ7l6tijm0raKFX24XxJssJlvi4M2RkAe2Zm14W+YH4GVU 47dCBfqVKpuZdIs90fGwnI7uYo0Y3UpFTXofewQWvaxZ6ASJpoFd+WBSWMzT2liIF14Y RfKg== 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=YQ5kcnCOObbjA6/Or2TYLNPevY5gyQfg0ztfeo6rNcw=; fh=vpjWIbDhIPuc3n1+BZUtQ9kIxE4zzGjcELo7keAGuQE=; b=akRYvPVnt0XFEnEcgg06wQ+0O+u1ZLICFgfvXx2y91O403ThUeyKXAXrdb5mn/1uSu zT3OeZGnTDYa+pRC32PDKaucasUA5yF4Oz0HSpZqde5vd4bIs3DqPoDFXGRmhBYJJgas 2zSEN9LfKLve4mfKwXwavZGOI4d3g2GfBp7xTW9QEL7kqIC7AKhYlhxDnNJ9mhZnHahN fb6bgMe5VDwxmnO/bHAQ1vNNCA9286em3kocVWWyIWTwQf3ulCIlpUbEdWiljAybPMc3 5F4BR4di3FsFwofYNfurxh1vhYvoE51pzeohMqMpED2X4ZRbc2atpNOH8MhTivHN6/Wy xyWA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K746NmEs; 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-44038b6098esi109984621cf.528.2024.06.10.07.59.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Jun 2024 07:59:25 -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=K746NmEs; 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 1sGgTq-0008Hy-1M; Mon, 10 Jun 2024 10:58:42 -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 1sGgTo-0008HK-Dp for qemu-devel@nongnu.org; Mon, 10 Jun 2024 10:58:40 -0400 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sGgTm-0004X4-Tb for qemu-devel@nongnu.org; Mon, 10 Jun 2024 10:58:40 -0400 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-57c73a3b3d7so2114233a12.1 for ; Mon, 10 Jun 2024 07:58:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718031516; x=1718636316; 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=YQ5kcnCOObbjA6/Or2TYLNPevY5gyQfg0ztfeo6rNcw=; b=K746NmEsNtGDUKEmxf3tt0bjxGNYZWyivyOwOcjqPJ3QSKMu0A2UEdHckqhsu5cYjg dX7uv/4d0dnEtpQz684d1QJFV0hkQe3PNY1o70iM8J3pLVyOQYRhU+bUidBvJZ8xQxH0 Ouck4tVEZCbkfDwJ9qNv2QcctolDWPeiqgkpSUk6RpNWK4sm7JRZoMgHAn68BPuqaIUE j6trX/Ka/p/xoibaOY+TK/Seabfruk8pkl6ClOucsT13pznufaV6Kr1rLFMIiLQkRVJ0 8JVh/PA4hCrZ8G8PLJt1G/o0SCpqBUDgx5Zn3kQ9BbvzJqGxTHEkulh3ihMXXj0VGWz7 Y8cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718031516; x=1718636316; 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=YQ5kcnCOObbjA6/Or2TYLNPevY5gyQfg0ztfeo6rNcw=; b=KgGscvJIam+A9v+4cRhrsED/UKLjsGApmExzOIuNZGDxl0lPbwaulwviXq9Xhfzb80 OWa9Cm2frsSEo/qLb+UHeL20kR9Mksn2x1pQdxU0gRTMde9ozxSRBqgQ8I8xayJ2UyaR nw4lmZKnYVY9TwiJazpe0lG2qZlfuLq+QPe16/ZbsxVDW9UHstuE6CHSfymXn5LRjRYQ OgYWlc7wlBi8/rY6tEnFZnsCV1SkXna+NUK91RAUVDtMtNtMSeSzaYH9qczA8anjoBw1 DE9ZL7Qg5gVJfqLxtkJJtJCQO0A8rV+5+5/Bf6+X4EVgJ8/MpoD1HMf1Vynf9OTy7ACg MLAQ== X-Gm-Message-State: AOJu0YyZoXChgQjnT/PULRNEInNbFs8J7HFUgPBIzmFSYA2Dp7O9gStp EWgUlIRm30yCWtXyptz8WFdA0GNrIKN/fj38x4iuFDbOOvvgwIs2Nml/YQtwi8sh7uD7TpKCJ/k I X-Received: by 2002:a17:906:3b88:b0:a6f:33d6:2d45 with SMTP id a640c23a62f3a-a6f33d63036mr2735766b.60.1718031516113; Mon, 10 Jun 2024 07:58:36 -0700 (PDT) Received: from m1x-phil.lan ([176.176.129.242]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f11e88ccbsm267003866b.133.2024.06.10.07.58.34 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 10 Jun 2024 07:58:35 -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 4/5] target/riscv: Restrict semihosting to TCG Date: Mon, 10 Jun 2024 16:58:06 +0200 Message-ID: <20240610145808.2267-5-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::536; envelope-from=philmd@linaro.org; helo=mail-ed1-x536.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 Acked-by: Alistair Francis --- target/riscv/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/riscv/Kconfig b/target/riscv/Kconfig index 5f30df22f2..c332616d36 100644 --- a/target/riscv/Kconfig +++ b/target/riscv/Kconfig @@ -1,9 +1,9 @@ config RISCV32 bool - select ARM_COMPATIBLE_SEMIHOSTING # for do_common_semihosting() + imply ARM_COMPATIBLE_SEMIHOSTING if TCG select DEVICE_TREE # needed by boot.c config RISCV64 bool - select ARM_COMPATIBLE_SEMIHOSTING # for do_common_semihosting() + imply ARM_COMPATIBLE_SEMIHOSTING if TCG select DEVICE_TREE # needed by boot.c