From patchwork Mon Dec 11 21:20:01 2023 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: 752537 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c83:0:b0:333:3a04:f257 with SMTP id z3csp1548769wrs; Mon, 11 Dec 2023 13:27:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IFxGZoUcUAUjDgNJJEbehM2yRTFu/JrwdLYhwBi9K5EPiQBcc9egmzeBE9Esn5uDvFD+P/p X-Received: by 2002:a05:620a:12fc:b0:77f:684:5ba with SMTP id f28-20020a05620a12fc00b0077f068405bamr6416252qkl.95.1702330029045; Mon, 11 Dec 2023 13:27:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702330029; cv=none; d=google.com; s=arc-20160816; b=BEb8LqpCxpLMN9ZZeTfXwbGs1aTTgJK2WRYVqYNNwLiKRlscEmZF6LGiM1r5zOoxUh n4n6uiGsNEFcCVfJUGw2dWnegjVURuLhDaptB9k8IECE5tk5P55Gi1P4eZg+pE4x73/T aZrMDHTSoZ2rWeevAZGib5OVYBYmOXZUY44DcqAwV/oNl7ScGEplAchy4m6y607aeZkU 0JOL8ZpNjuOy4ANq/Gv9xMZ02OElW61bb0DOKzghXmfrVSC1bjZlF0CRE+8/anEHlgaN VaOkauZwBD6BT3f7JCFW9+h9h3cCPPYU7u+1QUptd8zRIPsM1lJbIAJ5pLMKEfQ6aDgm 4+0g== 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=Mqu2MlgIdZS3QyZ/aQC1T5TlHEjoxgX9tzjZABIOL+s=; fh=I8Gv4l+Mvngg0xR5KeDSIN3bWIMQV7ABjXENGTHK57g=; b=l3DXjEfUak/tOwjQbw7PrnQZnxpq7jkNBpzsW6CMGiMLqU82Dps2SeX1/uktklhwoz ClSRYJ/sKA/PcLEblDGmQYWEPRT+KOdNtLp7T2UsxbtGmxIpf6zmWDJSEN57VHPi5gE4 qtHFS3eyJBq2I886kgmuHfZHsTjLm7063BL4q2vLojIpMPVpbRvg/w4KWfQx64PfJOOA eFTuT9xMMVUVCKyOBP6tS3Wcy81jeHCN9BsCrAsI6GViibWHEd9zyJgle8D1uPFkYkcp vVqUWNYu3/2kzORGFDzyQrJvKZNIq5Y+4Ya1dGPds049pbZTDh24UZFi9B6bQjNn0mYF S4Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ip6a5NgN; 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 u15-20020a05620a430f00b0077d6a185ca5si1972052qko.683.2023.12.11.13.27.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Dec 2023 13:27:09 -0800 (PST) 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=ip6a5NgN; 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 1rCnkS-0006dM-Vh; Mon, 11 Dec 2023 16:23:33 -0500 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 1rCnkP-0006TG-EF for qemu-devel@nongnu.org; Mon, 11 Dec 2023 16:23:29 -0500 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rCnkM-0005wg-Rt for qemu-devel@nongnu.org; Mon, 11 Dec 2023 16:23:29 -0500 Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-a1f6433bc1eso738123866b.1 for ; Mon, 11 Dec 2023 13:23:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702329805; x=1702934605; 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=Mqu2MlgIdZS3QyZ/aQC1T5TlHEjoxgX9tzjZABIOL+s=; b=ip6a5NgNqHygdZxbPwyPH9o6TJImdbN6zqUfBwqPPSyeCGUAoltGLPSWYmyhuWKACA SE+p+f3KA7yG4pRJJZK1oJ0S3JOAF6fJL7MwXQ+nEY16ArlnYZm7mbQUEc7tZ7ugpuhu TkNESfVf1iHSXDwbtxZBok6A2XnDD1CtT/Qo41pCKKTFKsmHtsjUrqZg8a62RCq1wK0Q PDxqLer7qMvnIy+yYm4KxpRdQa1vEMlCsWomU0r/1ksMZTERBPWeC8Wm6RpgPVJuQ7aB IE9mnvTm5xhc7A20XXAj1P0C/jbqZfE5azusYLp0+fH+PffuDyj4e8MIU69bRv+R4pBp c07g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702329805; x=1702934605; 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=Mqu2MlgIdZS3QyZ/aQC1T5TlHEjoxgX9tzjZABIOL+s=; b=igFc9bVl74nuXQho2oRF85oXGNTVkhDR/WGs53oYmliNkg5CTL8ZIR8eVmTIIsm5BM xXt3sUR42MsCtISd6aemjI50xlWk+MEZpe/1sMwweTA0z84ynEniBe6zw6mlE3tk/ykO w6Ma3Dc4GGd18HOV9dBqxDvlzZGrnklwcmi4+b/LJ9bycknAx5+hbkB6nw00sh537vYr 2FHjGpV6ZvwiJwtrxVDJTbeeF+4pzDm8c/D8g1YErPB9o1WKCzf3fRWhO78W4EvG4JkR UpF9s4HyG821A9hS7ic/vRa9On3NbGzmwhKD9949iMQnjYUwyBpwGSgLYosjCy6XyvZ3 8N0w== X-Gm-Message-State: AOJu0YxFqq/yX/N71WDN0VygrJz3XNqBqttmlARFSDZhSle/nx7GfYi6 iUX30CvzVXPYj0L9+6cooEpJ0dsGdJJ5btS+ObLXDg== X-Received: by 2002:a17:907:20aa:b0:a1c:6e3e:4873 with SMTP id pw10-20020a17090720aa00b00a1c6e3e4873mr4173217ejb.43.1702329805455; Mon, 11 Dec 2023 13:23:25 -0800 (PST) Received: from m1x-phil.lan ([176.176.175.193]) by smtp.gmail.com with ESMTPSA id vv9-20020a170907a68900b00a1db8b08610sm5437885ejc.148.2023.12.11.13.23.23 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 11 Dec 2023 13:23:25 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Ilya Leoshkevich , Peter Xu , Liu Zhiwei , Peter Maydell , Mark Cave-Ayland , Eduardo Habkost , qemu-arm@nongnu.org, Paolo Bonzini , qemu-ppc@nongnu.org, qemu-s390x@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , qemu-riscv@nongnu.org, David Hildenbrand , Warner Losh , Claudio Fontana , Brian Cain , Daniel Henrique Barboza , Richard Henderson , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Song Gao Subject: [PATCH 24/24] target: Restrict 'sysemu/reset.h' to system emulation Date: Mon, 11 Dec 2023 22:20:01 +0100 Message-ID: <20231211212003.21686-25-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231211212003.21686-1-philmd@linaro.org> References: <20231211212003.21686-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::632; envelope-from=philmd@linaro.org; helo=mail-ej1-x632.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 vCPU "reset" is only possible with system emulation. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Warner Losh Reviewed-by: Song Gao --- target/i386/cpu.c | 2 +- target/loongarch/cpu.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index dfb96217ad..17b6962d43 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -24,7 +24,6 @@ #include "qemu/hw-version.h" #include "cpu.h" #include "tcg/helper-tcg.h" -#include "sysemu/reset.h" #include "sysemu/hvf.h" #include "hvf/hvf-i386.h" #include "kvm/kvm_i386.h" @@ -37,6 +36,7 @@ #include "hw/qdev-properties.h" #include "hw/i386/topology.h" #ifndef CONFIG_USER_ONLY +#include "sysemu/reset.h" #include "qapi/qapi-commands-machine-target.h" #include "exec/address-spaces.h" #include "hw/boards.h" diff --git a/target/loongarch/cpu.c b/target/loongarch/cpu.c index fc075952e6..b26187dfde 100644 --- a/target/loongarch/cpu.c +++ b/target/loongarch/cpu.c @@ -17,7 +17,9 @@ #include "internals.h" #include "fpu/softfloat-helpers.h" #include "cpu-csr.h" +#ifndef CONFIG_USER_ONLY #include "sysemu/reset.h" +#endif #include "tcg/tcg.h" #include "vec.h"