From patchwork Mon Jul 22 11:04:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 813719 Delivered-To: patch@linaro.org Received: by 2002:adf:f288:0:b0:367:895a:4699 with SMTP id k8csp1814978wro; Mon, 22 Jul 2024 04:14:57 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUMBP97lKuq0tcqhz111jRBw0LJc4LKUDJDZi7AVq8LYSaTB9STZNeiEI+CDjYiJTN+yokS9XQHNU9TLjKpQlDp X-Google-Smtp-Source: AGHT+IEFxtKQ9t7eyZ/DE0+r17C+iyvyelmnA3nD9wru3QH2LF2QPQx6SQtsLy3Nc6vozKzFtzsw X-Received: by 2002:ac8:5812:0:b0:447:e5e8:83c2 with SMTP id d75a77b69052e-44fa5388e4fmr89810851cf.55.1721646896995; Mon, 22 Jul 2024 04:14:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721646896; cv=none; d=google.com; s=arc-20160816; b=eRKx6pKnbZGaOmAL23OjJGoIPMJQWzqReFKOFS7/fFno2n0T8yIHIRi5yQb3zgAz1R Fjs5lHwiT5yJd1fLsG3NWACHgKdLbWgLpCvkNeeTDLvkaFZUZyNDX+ee1H1SbcaqdUp2 VbLMQIg9VpZdtsS1VjLJknGkSV0GTpVccZGhsbrEzhomR3WkWWjIoJbM+k3JZsMvKFnT M6e34Zgq+mNUkqAUT0MY/K6tFLkeJXM1Rmj8Be9pD1ptuKdq3avijK7znw+RIpSKydZp DNX/A2IF4q1QVuxokjGYYkmJI6Qsl45oOdMDOBSYiZKATkTMAz159it4IukqV16KWzQs xpHw== 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=mrk2g2iMtnBRvtrBAoapMSBcMDfcCWKQff90zKvNuK8=; fh=wbzY7RULYzqK353CoktUxnKoy+CCKaWn2DI0fjgaXjk=; b=Mh+A+1ZnfI4MKghflcSIO4N0YkxfFHJU7LqUeLrurrVCXe92HW4Xr58pVTFSWEWAtE uUTAXY3LzESA6qz98KW+0BNWVQNHDERJuk0nbE195LaYSYxVCTJDrAU7NF6aMaL2XLMA n8eVMzMgTU8Z7FOAcFskAQP5frdAIBCqgREYoNLCu6KmSXOKufJAGh00SUnvYn9jOzzJ WJHKlQll9y8lAdlv+VPdnwkc4IkYxjxMVUW6ACAqabJKENYmwmQ0o6937WtxgZ5TITNN UFe+LvKuHV/4tSsjDK0P3/WCkqDqvYddzefwhM5PBSPX2tADgAFU1BbJd5Y28FVGM/h5 sNOQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uH9Bt1di; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-44f9cdd934esi76537171cf.491.2024.07.22.04.14.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Jul 2024 04:14:56 -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=uH9Bt1di; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sVqzn-0002cV-2Y; Mon, 22 Jul 2024 07:14:23 -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 1sVqzk-0002S0-6f for qemu-devel@nongnu.org; Mon, 22 Jul 2024 07:14:20 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sVqzi-0004Jw-1b for qemu-devel@nongnu.org; Mon, 22 Jul 2024 07:14:19 -0400 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-368557c9e93so2107299f8f.2 for ; Mon, 22 Jul 2024 04:14:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721646856; x=1722251656; 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=mrk2g2iMtnBRvtrBAoapMSBcMDfcCWKQff90zKvNuK8=; b=uH9Bt1diQUxDNNipwH2hOzfCbKNutV7bzf44MeMYBL+cYStDlFjT+V2b3sc9GF2dO3 EekDqJSAJuZw76oVAXQqnjpaHMngyLWYAdIl8zDtBKHEJ3pRNiYb5uvSBH84QMO0388P iAXlTPTzr93jBLG8UL3CIJ2RqiFYjjrPgsV/PE6Uc7iONMCqkNqK6Ex3JyBYBM+wwx7h w5Kol6NFiWQakxH3qlC4Se4RgEiCk+4X976GiUZF/Y0LL/leo6wNGdjluUOSPZrRw4hy 1AZ6bowTsiBDBJxcBq8JZNvHNQCgZ9lI0u20bR6RymGwIw+YB+7W+DUkvnjOeHUJuLI5 ew9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721646856; x=1722251656; 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=mrk2g2iMtnBRvtrBAoapMSBcMDfcCWKQff90zKvNuK8=; b=gqEa70EEl5eNbYG3X9FrtPSQ7nG45O7/DrUH8bvfyVSZWBgJFf/zJ3yGh5ZSU01sk2 JUm58ft2OTmmXRxnNcduwbWHiEKxTi5TIA6UJYCbvw+rpltN+pzlgv0UXsk0z749xpAI 3aC4X+EOgi17WpPVtbtRUw/8DPBi8tt8AL3UP6JkpGcpar98ktt33s6mktfGj0oc9gcY 5HWTsePyjVcC1XXcnELSqfY+ISdynKmfghP4rS7A5I1lxSqq3Acn7U30un5NVyRbMCpj b3hdmoG3q5nqCkqZVlC4yiY3j54aYJx660XUkcq+LQRX2pI1nN7/dDYWxssTkarG3cvT FE0g== X-Gm-Message-State: AOJu0YyNapcw/YYiyvp7Nf9ou/aDEiyLrFd67YPcGuGXWohlQwzU/Cpd QrSPTC4SWhJuywZJF1Wb63vNcI4EmyL9lOz8tBJeUiz5cN7n4SCVP/KJ+mNngBI= X-Received: by 2002:a5d:5f8d:0:b0:368:445e:91cc with SMTP id ffacd0b85a97d-369bae13627mr5096890f8f.21.1721646855413; Mon, 22 Jul 2024 04:14:15 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-368787ebd50sm8179498f8f.93.2024.07.22.04.14.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jul 2024 04:14:09 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id CF7E962102; Mon, 22 Jul 2024 12:04:14 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Paolo Bonzini , Anton Johansson , =?utf-8?q?Alex_Benn=C3=A9e?= , Palmer Dabbelt , Alistair Francis , Bin Meng , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei , qemu-riscv@nongnu.org (open list:RISC-V TCG CPUs) Subject: [PULL 13/16] target/riscv: Restrict semihosting to TCG Date: Mon, 22 Jul 2024 12:04:10 +0100 Message-Id: <20240722110413.118418-14-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240722110413.118418-1-alex.bennee@linaro.org> References: <20240722110413.118418-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x432.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 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 From: Philippe Mathieu-Daudé 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 Message-Id: <20240717105723.58965-7-philmd@linaro.org> Signed-off-by: Alex Bennée Message-Id: <20240718094523.1198645-14-alex.bennee@linaro.org> 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