From patchwork Mon Jun 10 14:58:07 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: 803006 Delivered-To: patch@linaro.org Received: by 2002:adf:f147:0:b0:35b:5a80:51b4 with SMTP id y7csp1984157wro; Mon, 10 Jun 2024 07:59:17 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWOVnoPhtrXyP33smITHuaJ7ze+p/av8K9CLl8dJCUQ6XLoOd2Lohd1eZhpfIZUN6iPgsEsjdHl9rboggdbhKEP X-Google-Smtp-Source: AGHT+IE4ZcxSzv7jOZY5w6JtRDuAwnVkCK0kIiTSsHwrCS2+8j06EXaVC9cMWOxYja/fbAlZcpc3 X-Received: by 2002:a1f:f44e:0:b0:4ec:f183:c9a8 with SMTP id 71dfb90a1353d-4ecf183cabdmr266786e0c.9.1718031557412; Mon, 10 Jun 2024 07:59:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1718031557; cv=none; d=google.com; s=arc-20160816; b=TlkSapO2qUcrutkGzIhGmuUAImVemRCNq095HmFYnm6MhKbvm/iMl2K9sY4fwmWQSO prXFdsSK7stf8Aiqq1Don269H1S0UZtEX3Gqf/uKhV1I+SztqoAWN7RZl0bEkUmc0iqC NM/77YnPfgGphdwQnu+Iw0ksZIscxyuSL43+5Q30mB18yS45ZvuGFpL9We95LyAw2BDR Tt4Op/UQk4pL7v3rIwuh5xh+skjjmgwcvSibzrhPzPSqz/FbgaVq2eE8uPR/Ki5odCIj lLUsHcNttPAlO9eS3OujNy3cPdobk8kAYG9gH8Yee7Aom6b40fG/FX5xUJkf1TxX36Ke G27Q== 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=S4LCP0TPUvNWs+1AuzrihN13r1C08nRA9emJSD2ibmQ=; fh=vpjWIbDhIPuc3n1+BZUtQ9kIxE4zzGjcELo7keAGuQE=; b=J9kW2fmuwNufuZJGf78P/vB51OijFmyOCj1byHbGHE1ilRzvHJx9KIliEKyyRS6OgQ 3L9Wubwe1k9yhlogR7AZqkqU/N1fL+NS6kSgYj7lall1Y1XtGm9lEQuha0U5kQJuork/ hHE/4a4Pfcn8MqoPJQK94XmTKEg+bBJ5tVKmvA0W+z6kWsrN6EZgZU3hN6LlgXCCpyXT qLoI+EI3hEefH9fNV7CtB51iZ5fnP540m9qHTTN2YDlSJMi3Qw+T2xuvXHcgTiekeMKS FpV0PqF9GOmmpHBTsRATPhezXaV4dx4XbBPKgvvB4rQ3OSL2blOBRUZ1mNndKAfV5Qqy Ps1g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OiXeQr0D; 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 af79cd13be357-79533396f21si1143173385a.738.2024.06.10.07.59.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Jun 2024 07:59: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=OiXeQr0D; 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 1sGgTw-0008Ta-Nd; Mon, 10 Jun 2024 10:58:48 -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 1sGgTu-0008PS-Jj for qemu-devel@nongnu.org; Mon, 10 Jun 2024 10:58:46 -0400 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sGgTt-0004Xt-4b for qemu-devel@nongnu.org; Mon, 10 Jun 2024 10:58:46 -0400 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-57c6011d75dso3195155a12.3 for ; Mon, 10 Jun 2024 07:58:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718031522; x=1718636322; 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=S4LCP0TPUvNWs+1AuzrihN13r1C08nRA9emJSD2ibmQ=; b=OiXeQr0De52RwGjKI17FzULjfri1/75yR+aLdPzLLwgGnzzKZBpgw8Bwj0NiJnmP1X eZjFKg1CiBGY7ntl8Mdp+bg5/vPCvKlxCsVjEH8I6JaOphH+va4FPQyvtYuFY4G+0GXO vs83zKFfVvX2WPgb35tL6B8IJgPZPb1tMxzFyHoC1ji/yYCaZwr7WaEPJ2ZsUKXi8kOD Np29nyNn7lPDR5jxjyI8mFhfeB26InWj8SimwoAwocB22lsZNFB4xyjI/Q3whhHiNLeW 45pf98i72+uS2Pj9IQ/9CUEoTNgxYzKffZ2N16FZ0u221ZiQhpmcrDeV/CMDf0paS9yb QRYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718031522; x=1718636322; 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=S4LCP0TPUvNWs+1AuzrihN13r1C08nRA9emJSD2ibmQ=; b=QQbpLKU5byq5jYoMyT+NZK8QdTRxIKFn9yNKmjDwb0B+tB8w3nST3CAV/kO2XduwEz XNpVR8gbRTNH+ppNj1XEMMPSKojmWrmHDLXQv8VGMdrmFL7h9eTCGBt9UbL1rrENsolb nS2vnAsm/Rix06cxVqHLiRj90AWqLQlfChyBRPbJVLHIe95qxpDidGUsDcfVAcevGzJp UYDp6Or2kPV0P0BiMiwI2W0wfkWwFbE151trbcgZ1qO0vb6HGV803wSTDYLefh/bZIIX pdcYkkZRJS33sbydLmQVNbLQwHdvj6EWjKNjXw4qqsn8QhUf1QS8ICY4C6bw/N+ljJ2J 34zQ== X-Gm-Message-State: AOJu0Ywux0G2BtTFcPwwVyx87fhKimHTWlYoaYIPCg9bwzSHWh4jdDrv F0VCPZkpeT6qh+E6JVK6MTZt8qRRjz9YUFsg4m5M9E0NUp/mFfSGhgIb0EyHklJEVqdPmuXhyCt + X-Received: by 2002:a17:906:50e:b0:a6e:f6b0:c4a4 with SMTP id a640c23a62f3a-a6ef6b0cd21mr470828766b.57.1718031522420; Mon, 10 Jun 2024 07:58:42 -0700 (PDT) Received: from m1x-phil.lan ([176.176.129.242]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6ef4581827sm439647166b.215.2024.06.10.07.58.40 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 10 Jun 2024 07:58:41 -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 5/5] semihosting: Restrict to TCG Date: Mon, 10 Jun 2024 16:58:07 +0200 Message-ID: <20240610145808.2267-6-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::530; envelope-from=philmd@linaro.org; helo=mail-ed1-x530.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=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. It is pointless to have it in the binary when TCG isn't. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- semihosting/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/semihosting/Kconfig b/semihosting/Kconfig index eaf3a20ef5..fbe6ac87f9 100644 --- a/semihosting/Kconfig +++ b/semihosting/Kconfig @@ -1,6 +1,7 @@ config SEMIHOSTING bool + depends on TCG config ARM_COMPATIBLE_SEMIHOSTING bool