From patchwork Mon Jun 10 14:58:03 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: 803008 Delivered-To: patch@linaro.org Received: by 2002:adf:f147:0:b0:35b:5a80:51b4 with SMTP id y7csp1984239wro; Mon, 10 Jun 2024 07:59:29 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUik+57Og++v5qG6UplkeF4xC67sID3EJKiWA3iZCr9XgUhS0MnRhybdzoQHeE3DJVlnrKoWiWKQqbuqJqh1pK5 X-Google-Smtp-Source: AGHT+IEIiu3ACjYdLdzv3KWJdySUlFaMvPMK2z1yN+nhmv7jrUWcgpb5zL/2+YOpU2UyYTKDYt+b X-Received: by 2002:a05:620a:191e:b0:795:53dd:d643 with SMTP id af79cd13be357-79553ddeaa3mr715556985a.51.1718031569001; Mon, 10 Jun 2024 07:59:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1718031568; cv=none; d=google.com; s=arc-20160816; b=HCgPdToPvwSOS+DvRKzisWO0bb1EKfJe4JddfoL1lzm1mlzrhLAF6WYQS35rjxfZYP k/vcDSjUqj22mdSYsYOpvHkZ0ELf+RpecbY3Bg98sVvTB2uI9rLO+unZJNqT11ADNEDm 2IzU4vQgcdCbNowvoSqoB4exFuowZTO8ElxZL2EfNvdnBSV4Yl3OgIiGwj6GLfmRXytX ENr0eudcNPeeLxYD4Filr88S2dF0UwMellCuB8p1JFJAn3IYgGsHC/w9QPGU0iyZS9A1 VfPhtXanPxWSUDl2B9u4WZaRQWsEvdIYvDAnfJb0Dcd+D8D8Oq6g3wtSfdiMwoo3ZgW8 CXjg== 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=5U3x05a4v+4MAIH1ElGBtlNNkjkLnxPJovuCbksbMLE=; fh=vpjWIbDhIPuc3n1+BZUtQ9kIxE4zzGjcELo7keAGuQE=; b=lDxHVbF/3hoPV5WonJi8OQD1dR2n1y61y6IW3UwwjBNmhQDGdRNgcPI1trjh1WWa0R C5AgWuC28F8HAvyAxGLBDsKZMKKlD1ThtHrEBfxiQWRWQtyCxcWjRC+I5GS41IF8+oeL 6X5bbH/X0lkA02ppplE88bms0YnR2XQT0CQqnIwP7DRfzSzL2F3D1hyj0p16pxJUYstC o/rxqByP75xgnGg2V3crhgG1PGmkmsZsiti0qfpeI0g4tncqJAh1KUdeLlWSpvkQFIz3 TyrqXnter8r/YrAFOis8xgTDL3vI34JCNkCQ7rDkj9UyjrEBgTmjZhC6gHrvP/P/Tijy txoA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pmQ5N30b; 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-79799512c7fsi143493085a.439.2024.06.10.07.59.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Jun 2024 07:59:28 -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=pmQ5N30b; 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-00089N-15; Mon, 10 Jun 2024 10:58:22 -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-00088y-NJ for qemu-devel@nongnu.org; Mon, 10 Jun 2024 10:58:20 -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 1sGgTT-0004Ti-7b for qemu-devel@nongnu.org; Mon, 10 Jun 2024 10:58:20 -0400 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-57c68682d1aso2547850a12.3 for ; Mon, 10 Jun 2024 07:58:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718031497; x=1718636297; 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=5U3x05a4v+4MAIH1ElGBtlNNkjkLnxPJovuCbksbMLE=; b=pmQ5N30bpnjpHHqU7x20Ij8LsuPAjcZ+fyIu06yPUUUz8iBTCicnbwxXy7GjYZW1BV DimQcGsPJTAnHZ3rSvoBAe/mHmeogFFhzRyXBGXZPj9FJYS7UitA5bXRNpPK0KnJGc37 HSjqlyVZ8WNB6C6j+jTG9x+4rJ8Z5NjEtsmuQ4hnluwvZEBbyn38ZxPFEZNbrWd/qiVQ RaYfwdP65WYfSibU+O4Ikp7Ep8nl88oA6PCl4KOD4XUS5tQ+WrrGQHNzH2Wumh8FYDmL h5718rPlnjUGfCQd4F1MsKkvSRIcUQvTsPcxiCZYqJBl6zae15tA6Qsu2PUenILa4IpT j6IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718031497; x=1718636297; 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=5U3x05a4v+4MAIH1ElGBtlNNkjkLnxPJovuCbksbMLE=; b=AfC0fqJ8kx1YW6Z9MmOy4cBmwk+oJW5c4N5pJ0FBi+lX2nh/Y4H6d5NpChT5Q+y5Jm Dcai7Ad0vDfvTcS6AEnQZt3SCnLOeTQ2y1PD5q2d0qbZUah4r4SuVvYorsQ/m0PhOKZm suSDRdmBJMfTT7wrshGx6gM64Skfpd/PRf0ESeKBRjlGinuLihGuMj4po9wNs5NU3sbs t+/4loW/ZKhOaY+rL+/2MFG/1vUizjv/HvYNzfi1lc7YG+LXEsCqKMK+eA8Rqr7xPJyp CL3CR2una5bXyRr03M1Uqw4oHx0/2rE/GuHRY0owMdrLbXwiZqSP4nyUHv62gjnWm3fV zflw== X-Gm-Message-State: AOJu0YyZjCCd/bkfxH0i+Er5kTtHNLVictkOzelolMuNbUYiCv20o2jP Ly0aW9eIERj5vrydTu1FAF0n2Ku0xowDfNUJXZ9vuJUDgqqgAyWrWgeO6Oxrifsp+78rsCoWUf1 m X-Received: by 2002:a50:ccd1:0:b0:57c:6adf:1035 with SMTP id 4fb4d7f45d1cf-57c6adf12b1mr3365343a12.27.1718031497049; Mon, 10 Jun 2024 07:58:17 -0700 (PDT) Received: from m1x-phil.lan ([176.176.129.242]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57aae13fff4sm7739080a12.53.2024.06.10.07.58.15 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 10 Jun 2024 07:58:16 -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 1/5] target/m68k: Restrict semihosting to TCG Date: Mon, 10 Jun 2024 16:58:03 +0200 Message-ID: <20240610145808.2267-2-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=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 The semihosting feature depends on TCG (due to the probe_access API access). Although TCG is the single accelerator currently available for the m68k target, use the Kconfig "imply" directive which is more correct (if we were to support a different accel). Reported-by: Anton Johansson Signed-off-by: Philippe Mathieu-Daudé --- target/m68k/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/m68k/Kconfig b/target/m68k/Kconfig index 9eae71486f..23aae24ebe 100644 --- a/target/m68k/Kconfig +++ b/target/m68k/Kconfig @@ -1,3 +1,3 @@ config M68K bool - select SEMIHOSTING + imply SEMIHOSTING if TCG From patchwork Mon Jun 10 14:58:04 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: 803005 Delivered-To: patch@linaro.org Received: by 2002:adf:f147:0:b0:35b:5a80:51b4 with SMTP id y7csp1984082wro; Mon, 10 Jun 2024 07:59:05 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWfS6Bha19PAmhcocJ7wQIkcySmZEGm8NkhsexMJWl9ovqCmiHf5kJPVrfwLmPf/iVkE9plEoCjRWVsISSatUjR X-Google-Smtp-Source: AGHT+IHZlgGzdA0n1OHTdVYTy+AmGXWrHPbsYC5LnJiqzAhq6Tsxc9g+ExI3wlS8RQn0/2urEomp X-Received: by 2002:a05:620a:37a6:b0:795:2944:d1b6 with SMTP id af79cd13be357-7953c2f6f0amr936026285a.16.1718031545580; Mon, 10 Jun 2024 07:59:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1718031545; cv=none; d=google.com; s=arc-20160816; b=l5zK67aYwvjnsMzZyp0278su4BSNp/2T+7hld6MUzFTEnVnMbulQQhKJb3qj3NlBc+ zbbQwb1F97kPU/X0XYv+kXYJYChxUOECNfopCq5oMacsCCBZfpQupnaE0gG7pfofKwWG j9iLK/up+vRPr+8JxVNhXqqAJLX8wGOohC/i8+FvoRCAHWLBeyJzZcDn7Rki1nQ35zOx ZZQHh2um8fmLLXn6s0C96qqQXud6hYf61pS1RZRmTy5OGPt2ED0ewNB8sC/ndU/U7tjZ CqHsqXDvHuTRx5gUsZSdf1jdmNFuyDX4LH3Yl35L1LuNMw2B+vsKXD2WguyOcJ7m7RCT dbmA== 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=vQhy8hrl81u7GNgqWNgI0Q8CnNR/8+x5QLQF6iXo760=; fh=vpjWIbDhIPuc3n1+BZUtQ9kIxE4zzGjcELo7keAGuQE=; b=sEsFddmk5pCaicylbz/CYYL/QZuc2ZL+38RDbowb/yOwBYfGlfizrpmZcaCvfsKaDp 1g2ir51OM/WQN08VFmYLMz0srYk8UsLByjeJA3PHmmbr/RaCrLtHAchthrNFiPUuYi7Y sLF7Y05fS9I/QmYrldkIb4O521q+gWq1Z9KZ8KB7Hv2VzME0hyN97aBbgXmnvHlwyvLC yYJPyZ0Vmzdnh4Yg7Yz4S1CWWprQW9LteNgSf9O8tW4k35TU839+iybRNWoa3OcfjozT RqeIe4q0g6MkTH5cl6HRu1ixnTRUZVZycvaYGLZ/o/lhV+WUJ/Y6aS2HMmFMELx9XtK6 ycmA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x1K4BnWg; 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-44038a6d402si101095471cf.18.2024.06.10.07.59.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Jun 2024 07:59:05 -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=x1K4BnWg; 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 1sGgTm-0008F4-OP; Mon, 10 Jun 2024 10:58:39 -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 1sGgTa-0008B7-Dl for qemu-devel@nongnu.org; Mon, 10 Jun 2024 10:58:26 -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 1sGgTY-0004UM-Pg for qemu-devel@nongnu.org; Mon, 10 Jun 2024 10:58:26 -0400 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-57a1fe63947so5846987a12.1 for ; Mon, 10 Jun 2024 07:58:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718031503; x=1718636303; 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=vQhy8hrl81u7GNgqWNgI0Q8CnNR/8+x5QLQF6iXo760=; b=x1K4BnWgKHE3cVl8wTx1amBbVh1AzpDiZK9yI31LBTBehMobbuzMldsvDkJnoLIcTF 4D7RtgqIqpMMty1WrY2h08VAPr+hnq/MxGFmZ73FqylJdk/cczOWS45+zs5YVEdRigHx NB+qCA/Y0kcEhanY5KQBrCs2cs3wpnLR3NL32oxeeX/xpINk6blPASnJ2CgA9BQtoIW3 UxoeLPQIsfu9LC2386R3y36yd52Ns1TPr2gbXgAUX5hvyKzySb2RvFcEmwsXy2zJ7Bzt +qDlOHjC7guWRGffOMsCnpqs6YV1h0SuyDc3mtgtFei59y+SipMZdQeXL84B6zo7bTU7 lG6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718031503; x=1718636303; 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=vQhy8hrl81u7GNgqWNgI0Q8CnNR/8+x5QLQF6iXo760=; b=fBrcmqLSC+PHPP5w2HygUZq6BMcQVepISdYSCY3i6yxcIB1GhwnIiWOBnVExbUUzbO dfqDS4ANk1+GYVSWPgHNu8eQKG3IM7cCC/5CnhpQtc4d2t8Zkbj5D6x+j1UMatx7kpsz svUJ7Rt620pLIm+Y0UzjsLzjMZdoYr600JdyTfezWN6W2OhB2YhSQe1NHip2zg90WYx8 0pdR4TvcDTgyrdqK7V5xVrmm9DEiwPgbbQR7TbVkbJowUtpZrpR7IHF7h3Aql98SR2ad pO+TnqxQnM6NoJ0A4r3ur0uUIKw9uMPLGOaq/h7IfORN22gwoGVAd67JoUMWdh5oRG0b MscQ== X-Gm-Message-State: AOJu0Yygs96ihMzq1vQAFHGQz2QpCS2f03oLWoXSfp/AKLCmskT8Ix4r zX+TYZa4v4vK3R7FIHXJhz005gA+gjrKKYVFAfwvzOs46WbUFNi2RPMCm3v8Af4ciMhBe7/lHX2 Q X-Received: by 2002:a50:9e62:0:b0:57c:7f3a:6c8e with SMTP id 4fb4d7f45d1cf-57c7f3ac291mr2541906a12.11.1718031503027; Mon, 10 Jun 2024 07:58:23 -0700 (PDT) Received: from m1x-phil.lan ([176.176.129.242]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57c7bc88c8csm2872069a12.36.2024.06.10.07.58.21 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 10 Jun 2024 07:58:22 -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 2/5] target/xtensa: Restrict semihosting to TCG Date: Mon, 10 Jun 2024 16:58:04 +0200 Message-ID: <20240610145808.2267-3-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::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=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 The semihosting feature depends on TCG (due to the probe_access API access). Although TCG is the single accelerator currently available for the xtensa target, use the Kconfig "imply" directive which is more correct (if we were to support a different accel). Reported-by: Anton Johansson Signed-off-by: Philippe Mathieu-Daudé Acked-by: Max Filippov --- target/xtensa/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/xtensa/Kconfig b/target/xtensa/Kconfig index 5e46049262..e8c2598c4d 100644 --- a/target/xtensa/Kconfig +++ b/target/xtensa/Kconfig @@ -1,3 +1,3 @@ config XTENSA bool - select SEMIHOSTING + imply SEMIHOSTING if TCG 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 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 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