From patchwork Mon Jun 10 14:58:02 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: 803004 Delivered-To: patch@linaro.org Received: by 2002:adf:f147:0:b0:35b:5a80:51b4 with SMTP id y7csp1983991wro; Mon, 10 Jun 2024 07:58:51 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUF5sb1nctZwcJDCgoCfS/WzCXEoM3IOKxxPDxDiS+SSqr2ocWFEAgDPguFixIATguzxPuXu7yqtUwjuK9zDe+f X-Google-Smtp-Source: AGHT+IGJy/ODCwC/ARjUDJX0BhG7G5/fYQME6+Y2W+L0eWlE9D/BbuqCcn8W1KmxO9ETBViaCGDX X-Received: by 2002:a05:6214:488d:b0:6b0:6f91:ae6c with SMTP id 6a1803df08f44-6b06f91be4cmr74043766d6.15.1718031531427; Mon, 10 Jun 2024 07:58:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1718031531; cv=none; d=google.com; s=arc-20160816; b=qm95kxt8ZGW+ak4RFbK0ZZ1/fM3IbSXUpQAAgx0hATwFFuv9fZOpLpGNn3tiwRYo5P fwVnyjwmTUd9Rr56FULClY8Tp/AVw0UKXWQkNuaxQk/TgcdfOUer4iyoesnBsYq4xzia zFHnJChlG5yLEwP0R7goz3sOCUPhl5FgN+doinVh0B/kkZZ2u/ge6fNoAWtTFP4/A/UJ MXwGnaRkC8wJQUU91iOW3I9gbK3HIA0tiWR/j9gyb+t2pdvyXi3YeorCNcv9JLkVC59k 23I2P+xskLu+ybzeiXQY7EorPzoh6p4lABGs2vhY1+vDPys/jpM5Myf2XA47UMfv9Rj3 CClA== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=o8eaNBimhix7LgmChDvOxshj4kJu/rpPBQQkKpgcBpQ=; fh=wpKKItlv8lWRhgphdZNnoY51aFS9jire4/LU4QIQ7GE=; b=O1C4Zoug9wydQ1V3l9spVj9eACLebDUrLN053WahhwuA7doFJCnvT0wIa1h6VcjVrx LeYydeQ7Iyg9D94KPrYTcmcsDhwLNgMV0kemR3vHhUk4etwvlisxbqavBG80PIw0AM5j pVo/JUheF22Y8B0aKP/TOmlcQHNipbcwbUxfdFBeJVS42cNMSUGWayg37TjegsLmKEP6 cdkk6vrnivYxmxPfsOPuwDitqQnIiSHfH9b+ZvOL82yoHHzzF1e5Y08WdCv8gY4Ssi1f qeZzJbBuynqaJhNogO5WaEV6Iv3rd4t5Tjxi5snCdp4mwRXld0ye069SNZJKKVYXLX3d MJIw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mfZbGdkf; 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-6b08823fbc9si4402726d6.36.2024.06.10.07.58.51 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Jun 2024 07:58:51 -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=mfZbGdkf; 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-00087i-N5; Mon, 10 Jun 2024 10:58:16 -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-00087D-KY for qemu-devel@nongnu.org; Mon, 10 Jun 2024 10:58:14 -0400 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sGgTN-0004Ss-2Q for qemu-devel@nongnu.org; Mon, 10 Jun 2024 10:58:14 -0400 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a6f09b457fdso180475266b.2 for ; Mon, 10 Jun 2024 07:58:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718031491; x=1718636291; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=o8eaNBimhix7LgmChDvOxshj4kJu/rpPBQQkKpgcBpQ=; b=mfZbGdkf2VtpeFwzUPDDv00cOBWs7xw8XN0sQj3JCdMOJnDNPzPKHnnXvPpV8Gl2rK obzUvbX0UQnz5Ins9q0ek5JSjaEjcEE3Rfd+vEBUpg/g7QLa0Dpinb3QNP3s835K5Cl8 z5hHAeEVxpTV7GN+9S6Zz6ZLl2jx+dBYmo+yDAtCdJkDXdoFTtpYezTU1MkPw8qwh3sW INrh7vbpD8jXx+bPzmGPXKkUfQyNa2lwSICcA9pRLYEw6X1aqAq6taepWVWIt5wolfgB w9Q+rgFBOh2xa9WtZqIweAp66VQLkHtW7CJUUh79UJypc9lPQBdCbXVQh/PKFvLu5Xgf qzaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718031491; x=1718636291; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=o8eaNBimhix7LgmChDvOxshj4kJu/rpPBQQkKpgcBpQ=; b=i5KGkKwsxQRRfxtA6AdkR3Ga9R3TRvjMn88H6pwTV5loWTqSlPeI31yg6NfHCVX/oN 9sLl5j6BLS/ntQOIuSps0tTBWgp38hZr2fOBKHjpwMrUNEKA76ZFDgNngQLGTZd8YUMP qPVL42w/29XDZgnKdDIiFt2M0GK3qsO/VNtGugOLqi/9SOdfjspHcya/6lN+8lI0+FqT b1FiiiCYldcYGdp+RQr4Ez86NeUPTASgZyBjxTU98sVJis5T+EOJwIe/1u1JKeErt/sy YvyL38779M20g2aTLLSLqcTOsMmfLB/c2PW1BZoC+Y0Lkbwhgr1PwdMytvJnTgopdUlS klbw== X-Gm-Message-State: AOJu0YwGuM7Zu5Y2I4I2gMxp4itVsR3fapizwLAt+ttSAPQeV7W/dJQ4 VKxKqzGbMmxHQN6fonwGAsj4Smc900BQ/sgC2etxqv2c2Y/OVXVnPBOzNMuy4UgooeyBPqB14DZ 3 X-Received: by 2002:a17:906:5612:b0:a6f:28f8:795b with SMTP id a640c23a62f3a-a6f28f87ab3mr92127366b.45.1718031491139; Mon, 10 Jun 2024 07:58:11 -0700 (PDT) Received: from m1x-phil.lan ([176.176.129.242]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6efcf350e0sm373840766b.156.2024.06.10.07.58.09 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 10 Jun 2024 07:58:10 -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 , Philippe =?unknown-8bit?q?Mathieu-Daud=C3=A9?= Subject: [PATCH v3 0/5] semihosting: Restrict to TCG Date: Mon, 10 Jun 2024 16:58:02 +0200 Message-ID: <20240610145808.2267-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::62f; envelope-from=philmd@linaro.org; helo=mail-ej1-x62f.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 v3: Address Anton's comment v2: Address Paolo's comment Semihosting currently uses the TCG probe_access API, so it is pointless to have it in the binary when TCG isn't. It could be implemented for other accelerators, but work need to be done. Meanwhile, do not enable it unless TCG is available. Philippe Mathieu-Daudé (5): target/m68k: Restrict semihosting to TCG target/xtensa: Restrict semihosting to TCG target/mips: Restrict semihosting to TCG target/riscv: Restrict semihosting to TCG semihosting: Restrict to TCG semihosting/Kconfig | 1 + target/m68k/Kconfig | 2 +- target/mips/Kconfig | 2 +- target/riscv/Kconfig | 4 ++-- target/xtensa/Kconfig | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-)