From patchwork Thu May 30 14:53:47 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: 800194 Delivered-To: patch@linaro.org Received: by 2002:a5d:65c4:0:b0:35b:5a80:51b4 with SMTP id e4csp274816wrw; Thu, 30 May 2024 07:54:44 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX2Y5xg46ntOXUCn4BTT4qfeXvriuQ3HHY8myDjFDDxtXJnYwi1LfEZu1Ct7HAu7WBLD1maE62CO3BZpHU0aP19 X-Google-Smtp-Source: AGHT+IFsuoHlSvRuhJ/gJMc79JrMa+rUYaKRdqvjtFMupyt6C+K8ZvxBAuV6HtwSXFV07GjvjVnh X-Received: by 2002:a05:622a:a709:b0:43f:eda3:3f39 with SMTP id d75a77b69052e-43feda342d3mr15467901cf.62.1717080883893; Thu, 30 May 2024 07:54:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717080883; cv=none; d=google.com; s=arc-20160816; b=YwFhemP4CZhJsBL/AvkiI46Lj3juYlDJm0FhQyX0YIwil3izRp+W2kLbh861+3ZenK xxomWFym4TGnZPf7fJeFfjfOeiEnma29n5IdWNg7Th3UFBZlyKZqADQ7HpEgDVi5LjnU zBuahaZOMq9OZPcA6TTbAJNr0g2loW6LAV6sbJzWf5crMxEbEXUEhNxMVlivsloI6l6m wzEsnJoVageGiMKmeaoPJ+XXaL8wwFZKA57XPo3ll7fRnKKunBHUPlSJFxat9sOH+hLs fsCT5FCePeb33bxCUKg6TgHHo8RFG7Quj663sYPGKApCkCVMlfO7VfuqW5Q1wVpn3JuC rG9g== 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=/Ff5kcUAJ45GadRFMIQaizSyWAAAwMa/2teqDZZawXU=; fh=INQsHeBfGwQ2Ob0ymnl6T9NhdSN+rfZwHBke2h6Hrb4=; b=d2gAIWKtAzhGzAtWKdYT6DtUW7rITyk3HfpjqYWP2WKznigsv3BjXdNqlV+dJyMzsK 8D2v54G0c5ZwgThk3F3m58HtM8YaY4niNJk+jrjlD8/kfL/b6L7XnZz9pD4XNHq5hMgJ 4jtdrH/W6QH1KrTfyG/6Q/fFuPBb7tJomQTE5k6OdQ6Sfxq/F3VqxGUQ7i08cPv2S0ih HVW5DSWLF1CpOHvt3NYP++cDUfJDr/zs5hb83OzWVjW18SbGZQAOYOESRDq9rgPoJ9us EzRVvKGm64Pn75nzZm5bxzTd3GhNaDrYCGLL7U1Tp7rxNHfkUqLR3jnzYXeLpnhVkASZ T91A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZgePRaYS; 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-43fb18a882asi161993601cf.262.2024.05.30.07.54.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 May 2024 07:54:43 -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=ZgePRaYS; 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 1sChAI-000768-Db; Thu, 30 May 2024 10:54:02 -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 1sChAH-00075c-2e for qemu-devel@nongnu.org; Thu, 30 May 2024 10:54:01 -0400 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sChAF-00022u-K4 for qemu-devel@nongnu.org; Thu, 30 May 2024 10:54:00 -0400 Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-5789733769dso1946655a12.1 for ; Thu, 30 May 2024 07:53:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717080838; x=1717685638; 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=/Ff5kcUAJ45GadRFMIQaizSyWAAAwMa/2teqDZZawXU=; b=ZgePRaYSm3Awekpvyz6aoU6jyRWdGmPqwHc8n7SWShuLSAvlB1IyO+s83QCbYC1S0m WBZ530ygbQ5kRmHXG9YvN26hJbRtE3MKOPZaMlF3v7/kPGwMgsLl2OWagInObc5QuGih m0YghU07O2kBYhqwa7N1JOgrcvi92eMoAO/KvEDzipX7hiwzu/rzA/4NJtELMmsnDz9y GqWmqDIQmqLR3t6ijkTppLDyQl5pdCMIwEJXIvZsF426lXEyq6bXPFAi1ZVeIdoKABmh VW+KD9U6asPMUYjf28z704JNnrkHN6+MM9AwDgoHawmwgZelWf/LVe89/G3nWatG3cFm j3FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717080838; x=1717685638; 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=/Ff5kcUAJ45GadRFMIQaizSyWAAAwMa/2teqDZZawXU=; b=gGv2Ppdy4DMZixbsVu9ebpi3POemdFD6rUxHFAC9UgpC2AW4SkNG4ac8f6ILH89xA2 bEnb5JP2/SWHzYXX4JLf7SNeH5T5WtONhE1WPXXRhluZrZbWi7DTCQ9INsXvsyk1lSt2 mNLJbXmMha1wTWM6VSsoTe/36XH6iEsCJeKakKhOJLkFsLNh2W+FMkhRVY0NpSV8IY6C p+Ua/OywpaSXlksDFaENwE/WzoPy1JepEREZa8WVrmRzJy7rj3Xfyi3i/1/vtW4Usq/U sQxE81Z/DUiz3KNBSBDPQ+kXxnRBn+pzP1MJSKjYiew1fLy6fEIAr0qrYUjW6QwQrN0l 8Pgw== X-Gm-Message-State: AOJu0YxMZ/FSnwd4MzYGGyd7sktn/ORmLIcjrmwoOG4DK7ikrYqTngDH 0aeh8byZqHxmctcz24gUaW8nsRGE+URiViMxUVccPP1uwYMLw9ZRDB7fYsnBwOixf80wqt8iaWC 8 X-Received: by 2002:a17:906:a854:b0:a5a:5b1a:e2e4 with SMTP id a640c23a62f3a-a65f0a69960mr179082666b.20.1717080837822; Thu, 30 May 2024 07:53:57 -0700 (PDT) Received: from m1x-phil.lan (xbn44-h02-176-184-35-50.dsl.sta.abo.bbox.fr. [176.184.35.50]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a626c93d38esm835954066b.90.2024.05.30.07.53.56 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 30 May 2024 07:53:57 -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?= , Paolo Bonzini , Anton Johansson , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 1/3] target/mips: Restrict semihosting to TCG Date: Thu, 30 May 2024 16:53:47 +0200 Message-ID: <20240530145349.41309-2-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240530145349.41309-1-philmd@linaro.org> References: <20240530145349.41309-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::52e; envelope-from=philmd@linaro.org; helo=mail-ed1-x52e.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 From patchwork Thu May 30 14:53:48 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: 800196 Delivered-To: patch@linaro.org Received: by 2002:a5d:65c4:0:b0:35b:5a80:51b4 with SMTP id e4csp274944wrw; Thu, 30 May 2024 07:55:02 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU/eR/2xazk4DR8T/cITj0JM/rrW1WoWI/8fjm9eqV7Jp7IVimcvhFhPsvPKb0mincghCeU8C+Sp3NDPve8IJCl X-Google-Smtp-Source: AGHT+IHfIreJEKOQFcfgsZQfq5hTbBiqiws/BdHiYgdh0X8SDL7WL6AQqo4SY2Ep2wVgYapEPIAF X-Received: by 2002:a05:6214:5991:b0:6ae:2da4:fd89 with SMTP id 6a1803df08f44-6ae2da4ff25mr12414186d6.31.1717080902251; Thu, 30 May 2024 07:55:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717080902; cv=none; d=google.com; s=arc-20160816; b=b+IPyZ1OORlCHqkmi6mcyKWJhLWLImFvmp/Ez9PGPTTRT5+yRWnRy5RI/PRaeMqglB RfrL4vsFXt9+A9McTogZ86M2lfbXcGzTgjPrbZwMx+iGlGTfPU9h4F8uGP3VED3WBKgv 4Q6XDaojRTJ2WbmkLPQuKaxgS2AIUtg2YYaYJzTjgAP8SE5Wy//9yjqm+hOAtFnca7vD AIxDOOPbgfjJM8dA8wP6NNd1OLMMXcxdBzveqp7gZYwSSnsNXueXOeUFzMr2bB43Bf30 iWiOl+wYY58JXz7Rwwkui8vL/l31C5thL5cqHm5cgnOFrbb+ouNmhbdul+gixjas7tWe 1J0A== 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=NBGdGeMx1eXvGpTXQ7NHtXTGnuO25PcPWZ9ArhDIKyk=; fh=INQsHeBfGwQ2Ob0ymnl6T9NhdSN+rfZwHBke2h6Hrb4=; b=uNwevE8dQ9rkqBow00VLnMMgiuBzAqKaYpv2BaSfPEx8MJFKq9qatsSHSDNrAEfbBL Uc5U4ESP3wjRaBWKf5zNRHLS1ZoZOewbFPCw8mfUU02aLI8zsnbsDDKrEcY6OS3erX50 hYYQphJbTAObqzFsuT1bFvCO4TAZQixkT/JmYlc2qjNmyBWZEG4RZ3O4zWwnPHbbuT93 1CpJ6eWvY9YtYxMXbKA6eaaszOXOCmCjgUzoNO94Dl5cRnSP4//zXAKJlvOKLAbH1f/l /ut9zCtNTUiV1+IgXPC/l64QemnrYodS2C/htFlbNjiF4f+1GKqgZCqnDz8uQX4IVNIE iaiw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dzZappir; 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 6a1803df08f44-6ae0bfdb6a8si22287376d6.496.2024.05.30.07.55.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 May 2024 07:55:02 -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=dzZappir; 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 1sChAO-000780-Lv; Thu, 30 May 2024 10:54:08 -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 1sChAN-00076l-6Y for qemu-devel@nongnu.org; Thu, 30 May 2024 10:54:07 -0400 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sChAL-00023T-LU for qemu-devel@nongnu.org; Thu, 30 May 2024 10:54:06 -0400 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-57a1fe639a5so851469a12.1 for ; Thu, 30 May 2024 07:54:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717080843; x=1717685643; 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=NBGdGeMx1eXvGpTXQ7NHtXTGnuO25PcPWZ9ArhDIKyk=; b=dzZappirn4JNbpyuq1Uvp9mveY3E1km5yWnhSm2OgXqPVQH0ho6pnLzhiMWmuqXD+r BGQSgeAaiSVzpHpbf/fzIm3i495g94RH+3jkdD2KcQ8dcGaOj3TazRPfY2QCv6XkrTyy xMk6NVtGRFgNqNWldBFYJVg1B+x1dlJAN3EQ/oj7q4ZMQZ7qu7b08JKQbY4Cn60uimTO gGQ1sKGpfbuUbn+MknU5r5WJZ5uA7hm+G0D064It2JJD6Ciq/B9qT+HmaPcOj36uU4XR /Gtyq1kD2BqaLCKMRVBUrvJ2+VjMiMOSYBkGk/KRa7os5YXe13t7eWirZggNb0DPLE8w xb9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717080843; x=1717685643; 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=NBGdGeMx1eXvGpTXQ7NHtXTGnuO25PcPWZ9ArhDIKyk=; b=qOPv1EZahGsX4BuhwVO6mHfj1RMeXap0NjP4Vmk4kxyXjyOo6bV9g4MCL0nKI/8myn ZwbFl0D5pKPCfd55mxnfA2zfBJS+8TKsxRxlytOjteQLrcJ78W/DtOzeOjIMm9GN8Ib7 +Xvx2wCEueTH9dOf+mnigB6KVLe8dOhCPv+VdwjN/o6cIfUz6kz0mftgpc7QWskfrq76 LAeCqRu9Ne9hA7+bzjZiLqQdV+X5Kg17ioNj6DpjcoL32UYT3iG4pEsuju5/O9C9tTKZ FEnpDDkMpUXiric5bgh8984autUkN44SRWZCjCl3rOoLoMkeosBUtBRVnrkQfBSTwK5T y4uw== X-Gm-Message-State: AOJu0YxUJcgtkGW4YwYzMQllkAj5eBwcrCrIfxDsbBXCBny/MmxvZLKA KIgmV00lkduz86t5iOlWpRiiU48r5w7/ktY5qb3a34Iosd8spODSOni+VEQ/vWnUz38v385Ctgl K X-Received: by 2002:a50:cd9e:0:b0:579:d1c6:1647 with SMTP id 4fb4d7f45d1cf-57a1797ba60mr1482707a12.42.1717080843680; Thu, 30 May 2024 07:54:03 -0700 (PDT) Received: from m1x-phil.lan (xbn44-h02-176-184-35-50.dsl.sta.abo.bbox.fr. [176.184.35.50]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-578524b5898sm9988661a12.82.2024.05.30.07.54.02 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 30 May 2024 07:54:03 -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?= , Paolo Bonzini , Anton Johansson , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 2/3] target/riscv: Restrict semihosting to TCG Date: Thu, 30 May 2024 16:53:48 +0200 Message-ID: <20240530145349.41309-3-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240530145349.41309-1-philmd@linaro.org> References: <20240530145349.41309-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::52f; envelope-from=philmd@linaro.org; helo=mail-ed1-x52f.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é --- target/riscv/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/riscv/Kconfig b/target/riscv/Kconfig index 5f30df22f2..cbafbedaeb 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 # for do_common_semihosting() select DEVICE_TREE # needed by boot.c config RISCV64 bool - select ARM_COMPATIBLE_SEMIHOSTING # for do_common_semihosting() + imply ARM_COMPATIBLE_SEMIHOSTING if TCG # for do_common_semihosting() select DEVICE_TREE # needed by boot.c From patchwork Thu May 30 14:53:49 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: 800195 Delivered-To: patch@linaro.org Received: by 2002:a5d:65c4:0:b0:35b:5a80:51b4 with SMTP id e4csp274815wrw; Thu, 30 May 2024 07:54:44 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXJo1n0iA+frglaG5VCVz6krNBNwiya+nJ0jiG+eIPqAmd9AbmxiZFEJ52AqbqbmVarEQUHYLfTv9B1PdFCOGE9 X-Google-Smtp-Source: AGHT+IFvbirPjCXDdYp9JMVsDfF2x0hmE1DHw4/lppgF/btw9K3rFibX3jrTszAEbxTNCMBZ3WER X-Received: by 2002:a05:6830:4792:b0:6f1:2384:cdf6 with SMTP id 46e09a7af769-6f90aefd79dmr2555278a34.28.1717080883884; Thu, 30 May 2024 07:54:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717080883; cv=none; d=google.com; s=arc-20160816; b=gJc1FpbFogtknaK0DiNLbfxzUkHrVPebkioeOGMKOWx/lw8URB/Y+EZxbkfKoe4rB0 d4R/UEu2mZFxoliQf0v9TVRSJoswNaS16zolpp6ef7HnDCzXk1hPe/B9ry1fSoU+32O0 SqkQzEYOiwrXe6MvEgALUD1xKXNXiLwlhWTfgkY2WSSax8HizjJoHDMNuZO2BI3ZClJd xwG24IKHFNLNu80R+Y3U//4UPR1SXySrNfoPVg5PllJCSWBi7fyFzsUXO33lZcdgXJII 96ASjoZfp4Az+IDjBQ64/efJ0aBvDRRnmSNZtKJkFvlWAyn7trxrNiavW6cRyzNoRt0G c+Lg== 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=INQsHeBfGwQ2Ob0ymnl6T9NhdSN+rfZwHBke2h6Hrb4=; b=Ibejd/rbDt6LtTy0MSJeg/6guq8qKx9WMVdNkZHB4bfRbszV24FxCgPksViGrOAsMB ENF4Lf24+OgtPt2gLD30BR6XT/HjrP3YAOCCUEivkb7y26iUF4w/ULZ25C5ICQAZhENq qMCJm644PgS3ug2B7jMz34qdRJ/PSdUZpemIdbOvQuixcHvw/g5yi+40WsnO9r2QmvK3 pOTBSts45b/wMwTGaIpBRz8OGX0ZkYkNW0ub6l87MHKDevLfpy16cPBoFsq/QpU+viUw +0N3tnxzVUcYmHFv08jg5p531qXM8nTYxVXRJvBgkBgZBYYs28oKsSXsS5H53fXi1XwO eCHg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fPZGdaoP; 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-43fb18c7e3fsi149357351cf.570.2024.05.30.07.54.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 May 2024 07:54:43 -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=fPZGdaoP; 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 1sChAh-0007Bc-Ig; Thu, 30 May 2024 10:54:27 -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 1sChAS-0007Ag-FA for qemu-devel@nongnu.org; Thu, 30 May 2024 10:54:12 -0400 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sChAQ-00024O-Tn for qemu-devel@nongnu.org; Thu, 30 May 2024 10:54:12 -0400 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5785eab8d5dso1116195a12.3 for ; Thu, 30 May 2024 07:54:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717080849; x=1717685649; 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=fPZGdaoPx+TaiqaTs6IWgab1GpNpuDvLlnrYcUmjmKNg4uE6J5aAY5is3tYrSAr82E wo225/C9mXcJ8a7kExl+KI3Ovm9loe86PMThWrMSfNmEaII5mNHu29aQvqyClnYykOSd bIaXdAoxBYW5exps5XzCTX58APgzE7SHCdWXz6eLXI4KlIdOjjTs8Dp6aDQkeAjE4EhO Qsiu+vC1qR8aZVvLvhlYsaFXlm2PNOuwH89lGc7MPI8NcgKNzq27tFyRI7V/6iPJ2cHt aCP9Qaz9eLqSLNcTt2XwvtwOW+XzVmW0eVvzERDV7knqxYgz5UGaWFc0gBUGJ2uo02DN +m7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717080849; x=1717685649; 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=WsyLAlRPGiRxS1TYu+o85D5mqumM+IizqXiTHZH1/IxtzdKBrEotQNXM7zoC427Urm ghoQU5TEqAcsydevXznV/4Rbjr5R0GEUgpMPuNrur+UTXqt3qoVWIEahghbtGiLmfv0P 0Qhu/tjnctQZGUvDBli8pDS8wOYR7d8LsVvvKNBxV7e2wHyX2pmdkEXk9yc/K5OthgZD 7TugXcZNQGsdSVJ9cfv8OyVCmFm4S0SgGwM5o33kfLbjDYa3aByrS6m20zjBzDxRrMZ2 G0Uj8HTtvzQfsTTijyBjVd7St4RgjbuDklHJkUPa1SKzTCogjGfi+/fatzjdz0Zvevxm Q0Jw== X-Gm-Message-State: AOJu0Yz2h0SCmeU4wZz6AlTrHcmdhi9Ueupg58dCw90uJS28eqrsTURg AgoPovJ/YwszLK6kDOu2Y/XLLEYGGQeNVdzLPFoi1KyWAoQ9HLTgx19wfS4oTXyh3sY0aa0lZSC X X-Received: by 2002:a50:aad6:0:b0:57a:1fe6:d39 with SMTP id 4fb4d7f45d1cf-57a1fe60db8mr792942a12.15.1717080849231; Thu, 30 May 2024 07:54:09 -0700 (PDT) Received: from m1x-phil.lan (xbn44-h02-176-184-35-50.dsl.sta.abo.bbox.fr. [176.184.35.50]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-578524bbb5dsm9907101a12.95.2024.05.30.07.54.08 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 30 May 2024 07:54:08 -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?= , Paolo Bonzini , Anton Johansson , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 3/3] semihosting: Restrict to TCG Date: Thu, 30 May 2024 16:53:49 +0200 Message-ID: <20240530145349.41309-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240530145349.41309-1-philmd@linaro.org> References: <20240530145349.41309-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::52f; envelope-from=philmd@linaro.org; helo=mail-ed1-x52f.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. 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