From patchwork Wed Jul 17 10:57:21 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: 813001 Delivered-To: patch@linaro.org Received: by 2002:a5d:42c4:0:b0:367:895a:4699 with SMTP id t4csp728521wrr; Wed, 17 Jul 2024 03:59:13 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVFGld/LKKzuGvUJEn0WmWpKN2wrQ6oohdmjXHhrbw8edOg9twjeDQH2J3B+OA3075+EcS8wo/AbQ69DxNrmlj2 X-Google-Smtp-Source: AGHT+IEKYuJc1O1NJNpliWvXB+ShFtc2Nb6xpvaKZppF8WPO3EqJ9vbjMv0DqH0yInfETcQSUj3X X-Received: by 2002:ac8:5903:0:b0:447:dd66:8004 with SMTP id d75a77b69052e-44f862b689cmr24615301cf.27.1721213953666; Wed, 17 Jul 2024 03:59:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721213953; cv=none; d=google.com; s=arc-20160816; b=D1KtSdryu/7eV87dNEmF0BBuXVaXrPNc0nr37ZlMDtTI/4iKp1Ktd/84M6e/a8OpgF C/EHUtqN9EGG86pSPjZ6bvxkB148AQQ6zuRwKHVFgFmRJCaJLEEGvQDUbrlAiImtrXFF m/n3aMfhmpy8Sxk0W+QwrVH5a3oSSae6HEHMGK3/PvANaDiSFRhILqWj92dP5XMHrrK4 yRHH2anbPcxc3AMfMvxIxahCsxER/OJRGyqNv/JqfAuTkRyOA8iM7EtuNSdbeECxeUUp SM55XYNNmbFzYIr146ftmkY7kPTODRIbsaHtAFDA9uNAh79pAB2Kx1Lugsr3rWA7siOF L3HQ== 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=3DC2703P4xBxF1F4MVQfPS76oLaSUJt9TaUyDV5jf7I=; b=e7111je7xANqKzxzebF0wl8ABZElTHQBe6hdAwTy5BsWtaqbfkU19/7I5XFJftdL5I aC57JOzyxVXrpIvSL7aXv68A5HzJ8fk83wV9mUYgPLF+OvXJCuiJAtCOoV3eZS/F6lYO rdXO667pBXk/RR7qluOxYY/0E/LAwh6WtOYZO20a4TRz1KRAjmffKOqqJsYUOYwOCF5N etwSOtSc9nt8FBG6dFAJEyL7oD7xJttdmHIfdhXbn3qoiPkVjLW0HgWEsNid7kTjDoNj BV9erwhvIcy/N2Aw99mQWfweGjTqHl3MhAXwGvv4cg5Es1beRNqmnVJ8LMw0AE5891U4 t6nQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=awDkfBAQ; 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-44f5dfc60b3si94636821cf.766.2024.07.17.03.59.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Jul 2024 03:59:13 -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=awDkfBAQ; 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 1sU2MF-0004Bc-9I; Wed, 17 Jul 2024 06:58:03 -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 1sU2MD-00044H-Je for qemu-devel@nongnu.org; Wed, 17 Jul 2024 06:58:01 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sU2MC-0005fj-2D for qemu-devel@nongnu.org; Wed, 17 Jul 2024 06:58:01 -0400 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-36798e62aeeso4312846f8f.1 for ; Wed, 17 Jul 2024 03:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721213878; x=1721818678; 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=awDkfBAQ35vvxlBLC5tWQMTYjibDAsKNdyPaMK885LEoBDQWqsiCZBl/rStaePO+MP PHdMHF3MoOAqvXVXTyc2qggcFNCkbKZktQuEThoukzAzSR0pEs4YIMiZvA2Coiuatbs4 00/hB7DJed7DV3kcf73IX8enbVE3uw0tGSYUo/5h5Vj5ZRZUZMKRrVdJhyW3/zKqflsZ eWftatCqla2Lleyr8tGqecPEA6LfelPdMz+GWeJ4+CmSaGyjb3qc5A3j4dE9Uo/3OpaH un7Y/IF8zNHPhUZDHdpqjz9ZuZmf8lwnAnznWVebr+vCuOKL8Mrqxt0R4E/Wn0q81VL8 92dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721213878; x=1721818678; 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=mZjSJdHCFo0sVzRHsaMajzrn72XCXOkr2y93gpTcf++XfQM8F2k0NeCsdim4FIUpoh ZjdO2Qd21OyIHQXzC87DoHXDGNWYat0tJJ9syd2BXkvIsVtBYBPJLCzre7ejahrYIxK6 2HwIX6vEEG7pcGKy1bmD2rXS/OVQtfARB97/WAd7BXfgtpXQivbWovKiNTOGZ0pmER3P BxwV595BGfhPtTBIjWJ/+Z1jY6zHt/hsNvne4j8HTblA+UY+vGRSq4z9l3x6LAz3Xf2s HDL6hWdgguiiKG3lTAai/dkxD7wDr02elDG49iIUGFQC/Lyh229kj6XG0UaPWl0hEGFx FfFg== X-Gm-Message-State: AOJu0Yz1JIxTaub9XFcotpcp8YGT5HiOe0CVC7JFBb2lJqLkb73tk0UP QKXhI1aFkBiFiIC0yb8nRN6kQfECtBsqtc3FhBubRd1SkVROmKU+eHW2bwsc5yyjsFnhTRCY+v9 CYlTpyQ== X-Received: by 2002:a5d:5cc3:0:b0:368:d0d:a5cf with SMTP id ffacd0b85a97d-368316f8093mr740735f8f.45.1721213878365; Wed, 17 Jul 2024 03:57:58 -0700 (PDT) Received: from localhost.localdomain ([176.187.208.21]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3680dafba03sm11370123f8f.76.2024.07.17.03.57.57 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 17 Jul 2024 03:57:58 -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?= , Anton Johansson , qemu-riscv@nongnu.org, Paolo Bonzini , =?utf-8?q?Phili?= =?utf-8?q?ppe_Mathieu-Daud=C3=A9?= Subject: [PATCH v4 6/8] target/riscv: Restrict semihosting to TCG Date: Wed, 17 Jul 2024 12:57:21 +0200 Message-ID: <20240717105723.58965-7-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240717105723.58965-1-philmd@linaro.org> References: <20240717105723.58965-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=philmd@linaro.org; helo=mail-wr1-x42a.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 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/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