From patchwork Thu May 30 14:53:46 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: 800197 Delivered-To: patch@linaro.org Received: by 2002:a5d:65c4:0:b0:35b:5a80:51b4 with SMTP id e4csp274954wrw; Thu, 30 May 2024 07:55:04 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWpJ5ouol9EjOTSJAKpRZ0116mwcEjJDqJzS0o407TXNwgbSMIRh/L4IiO5QLWMCkJLph9f3KQX/xBt0inUKNBu X-Google-Smtp-Source: AGHT+IEFF6OsCO0pr5gnBiwo3XDkxkBtl+u0aKWxuQEs2SEdhAvIB4xZ8Vwh0k7+VM7/4shWa7D8 X-Received: by 2002:a05:6214:5b0d:b0:6ad:4ae3:ed2b with SMTP id 6a1803df08f44-6ae0faea46cmr39072276d6.23.1717080903709; Thu, 30 May 2024 07:55:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717080903; cv=none; d=google.com; s=arc-20160816; b=ofg1EwSz825iGkbhTpmHQd6Lx2koKkQ67PUeS9IphVRtQjimbCIRSV5RMSMMCuK3B3 s2CiabvH6Zs2HbEaEzfC9iM2XDfMG5jnoeQesKmT6M1nn3XJBYpl2EHYovVgxlZEZZLQ +dggT8ZdCI1cuBb/uYmQKWqsljhPOxb2mbA2lD+Dt/oryYJNgWjdND0jA58W+HsmlWBk L43S0EYTQmQCuGbDHIG/Ui8uxZGxghlH+UpnLk8xOGZtGaD0cFSEitIRIdR+eu8D0WnV jQodD0vAx/FXi1xkuhcXqphKWjW4SeLzh28Winan+DF/VsoBKZZIvYIH6OC04xqOmtvT 7R/w== 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=JDUMrKLIPsISoVu0sguAFcKS6fcO/ixLXajxTcHbSMs=; fh=Aa/J1TDVDanoDgB+yHqx8QP4ca6IzhMawSsSluw/lEg=; b=AUc8hU7nlkSrOkePX1c9KqR/AG/w0kGkxGl1wkATWiNt9RDrNLwDDwSYF1XGDvewi3 O281XaOMwRWd+BQoXZjJRvaL4c//Z5Shg3Fx0IJVPqu7TrLk31uKYc4EvO8HhqnUCOAr QULUWRv+6EcVO6vsCbrHEeVsrFUdV3Ya3yDmlcS/+q2HXYpuvzyWNALBUwy6J4R2LIP/ S6IVm8pPx8H13L5Q48rb29c+yeuDmY94sIikVgqbk0Uu1okGFD3XlSmyCmDW0Qt3jDtU /hVCHmPEUgudf+C4javjZtc+xKUwg1G1G8Knpab8vtpQomy3G5K3GJTG/XwvmJrYDbXf lPXw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vEOvckVV; 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-6ae283e2467si7536526d6.268.2024.05.30.07.55.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 May 2024 07:55:03 -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=vEOvckVV; 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 1sChAR-00079E-5k; Thu, 30 May 2024 10:54:11 -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 1sChAP-00078t-Pv for qemu-devel@nongnu.org; Thu, 30 May 2024 10:54:09 -0400 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sChAA-00020E-K0 for qemu-devel@nongnu.org; Thu, 30 May 2024 10:54:09 -0400 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-52b8254338dso499386e87.2 for ; Thu, 30 May 2024 07:53:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717080832; x=1717685632; 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=JDUMrKLIPsISoVu0sguAFcKS6fcO/ixLXajxTcHbSMs=; b=vEOvckVVA0ZIU2Hn0btmHLZVNoUrTWXVeXLiumR6LbGs23LhldIR7xF6TL/Ve7phI6 zk24XAWwjRiNCyMcqHRu3rjXThBUsAbBPm6D3Vqu6XeAFQirk931MdICEaZs/Tohi+Ex gaJa9kxgoE1Ut2AhVfGsk9p/GiZR1A7QhFbF9UrK9XXgge+dsAIONvrpa1eUyQ8a7tvH kw1sCN9MKnlRGCrf9R083o5RlCYSHLhHN1I/9aQ9i6dPZKXyCyB7GYH3cmWA7YhGDouh TvFWxCmoxSRMR171FZLubdnBIq9EXPkBm2ElklKTHoMxwOnA3SfN5pxAXJhAecbGsMAe erMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717080832; x=1717685632; 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=JDUMrKLIPsISoVu0sguAFcKS6fcO/ixLXajxTcHbSMs=; b=CgV51socpNe5rkqE0cntS+Nr3qgn3HK6I6vY0RtKbVtrZczSqT2m/SZHoVlMd9jjKY wJ3//sg+iv6KWCg8m8x/3V4ezoRg2Ud6DkgsleLNLnfSWSQVpqo+G7USXOjulsg79al8 YpLvfmOV4Rvb5VYo2idiiR1/ML9uK6eSJnjwY8kNLhbdOCFCmYLD7WBb2dhEPyoMQbe5 3O2YCrKLxYcUahLHhpOy+2JWf+ermp8vRr7sX64dhMp+Dbtevnbz7GTEmE+WvOWvsFyK /ybjNKBdMwTYW73bCp5WjdsMioDIz8zQl+0P/qqOqsMWB6zoQy+vUz+Q+gncWpFUJ5gm xYfg== X-Gm-Message-State: AOJu0Ywag9QuGUv0GIjvryAQgUrgP8RzIbdnuTA2m7YezaUKwYBe08/O LWaw7g8zNVCzNjLz6ZQs9ThqU8oyysyhN19aJfL/Sc2gfNZYd4KFiaz71nBg35uAGnL8ofIohvu I X-Received: by 2002:a19:ac02:0:b0:51d:1d42:3eef with SMTP id 2adb3069b0e04-52b7d434f4amr2519871e87.29.1717080832158; Thu, 30 May 2024 07:53:52 -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-a673c9bede6sm13551866b.192.2024.05.30.07.53.50 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 30 May 2024 07:53:51 -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 , Philippe =?unknown-8bit?q?Mathieu-Daud=C3=A9?= Subject: [PATCH v2 0/3] semihosting: Restrict to TCG Date: Thu, 30 May 2024 16:53:46 +0200 Message-ID: <20240530145349.41309-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::12d; envelope-from=philmd@linaro.org; helo=mail-lf1-x12d.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, 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 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é (3): target/mips: Restrict semihosting to TCG target/riscv: Restrict semihosting to TCG semihosting: Restrict to TCG semihosting/Kconfig | 1 + target/mips/Kconfig | 2 +- target/riscv/Kconfig | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-)