From patchwork Tue Dec 12 11:36:40 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: 753043 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c83:0:b0:333:3a04:f257 with SMTP id z3csp1847771wrs; Tue, 12 Dec 2023 03:38:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IE1L81HakXfSQZDRaMwUVV8pArSwihqyoioOgheqg1jzw7FNUQSkP5GQfGYeJ/+thaB7/8U X-Received: by 2002:a05:620a:22ad:b0:77f:1717:f76b with SMTP id p13-20020a05620a22ad00b0077f1717f76bmr6124283qkh.13.1702381088337; Tue, 12 Dec 2023 03:38:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702381088; cv=none; d=google.com; s=arc-20160816; b=gQtDakhJvpKoBzrJc+gpJ5CfiW6/9aX1NjJfVcTgwBMUkZ7VOPzzwJ/kz0Zj/Ut4yH Lqo6n/AYvAFEeYg38WpJqMwMo0e2isPrDJoj2qLm93bZPenQw9q1ErzpTeJ4J9DXTSHe 496msNaAUBd90weI/lJtYNp1uaDlq0JdwQadr1QHaDzaav3vTpfvJJ3iVSCzSNihFBj+ 2pscDoJNOTVL+EiQa03mMA6CLzndE/4yPvWyJh+/mH+oeaTojc4rEzN9etXzgkMG8Df0 ia3vhnjzvTGRH2tA8gLiFN6VBXI7/Hnx39hc5FjsfWjO7hh52pxkTl209rtfSKhRq48W 7dMA== 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=wWiIaEjJAQ5+it/KnfBC9+5RmIMqGqAwUm0O20jJXPQ=; fh=Ag3vUXt9JQnBx0eW8FdPEehCurCFVmpDuVXYT8pyrqo=; b=fWEoD0liZzb6Af1QxBSSNY8u2/ZrRa9DYv3XdScW71nF9ohgsJSmm3Hbze0gRskMtM QMFUxzN/tn4W0vM14KLIay+Ymshge1SPX1SiZKFefUT9j/6GtQ5HmjofZupL523bhexr 2QILkWNBXzgEvrzsoK/U064NagnJci3cLwPaJ6btU09WFTJNhlZkCX8D9hWDexqYn36a Ek8Fuoa0UpSZeRHo6E7jR5Hz4ca54kYaxMsu9B9lzvgAXlwn3L4b5/853JMKXTu2BnyM uGzH5Db92BbOjr+aTq5HR/ERKnciRxjuTFdG3QTlJDzOzF7ugR3HQX2rhchTJ7pI5Ju1 hj3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D5aOZ5jM; 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 x10-20020a05620a258a00b0077dc65e33f9si10858932qko.27.2023.12.12.03.38.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Dec 2023 03:38:08 -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=D5aOZ5jM; 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 1rD14a-0000NZ-01; Tue, 12 Dec 2023 06:37:12 -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 1rD14Y-0000NI-NX for qemu-devel@nongnu.org; Tue, 12 Dec 2023 06:37:10 -0500 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rD14X-0006xj-6n for qemu-devel@nongnu.org; Tue, 12 Dec 2023 06:37:10 -0500 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-551437d5344so2330573a12.1 for ; Tue, 12 Dec 2023 03:37:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702381027; x=1702985827; 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=wWiIaEjJAQ5+it/KnfBC9+5RmIMqGqAwUm0O20jJXPQ=; b=D5aOZ5jMkZiSdivGk3Ctpvfq+hLfnqh1zUz4EGctBo1glij3JdaMObOo5isweEhmaa friO948e36jgF6tG10zmUsXEeaUP71xnTALP8e/NHObJrAK129G2O3viel5GqpNCljoq 0KC4PAfiWjpXV2pgqB0YvtqsFwUfKFdsEuyUDI4KbZnOmuLedJFx111lLTaJn4r2pfwE VKphMXLeHaHE27BKoHiS5KPcP/VIVczszqvl5ILJXsqKdito3cOy6ZEhOf/xvAtzFLMi XRVbUjmJLOoIvGGDhbvK6aE5XrvjIXlj9FbM8NEzNVMZnrtNdF2kpWICMGsiC2YVK0Py CS0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702381027; x=1702985827; 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=wWiIaEjJAQ5+it/KnfBC9+5RmIMqGqAwUm0O20jJXPQ=; b=H7FFvCnj9+2o9v6G76kdDIiBMHKm4p210IHUF2mbvV0xwJR4ic1Isurk8K3YOhDR9n Mu15afdAnFSsicVItipfa0EMk6FAzMxtQttD8oSdwXilzukzx5Xcd0aJbbVYcuuAnB4h 4CqVfVE1f7AwxH1Q6jA3YmHWIyY1oT50s0NVwf3/vu8qBgeDlKVuNhZ+0OkeL0TFFrdV cOwXTUun2V3xFz4ZGaSg3QLWBn1GoiTe9pZbaJ6MQ+6W18JEthUTeOtvULsIYx3fPjo2 pC5m2ElMioGHfpexwKyFU1qI9IMVmicKmcJgntDA18tl+9EmNt8JfstR82JF822BvJUH yF3A== X-Gm-Message-State: AOJu0YybDD5gyXGZyxzS9TwaVpjIwY5GaAuMo4XTKrNZos8oZvUjJMG9 fppQ0BkRb3m9Zw0OwdlO1m3ahcRWhF02ddLc1487hA== X-Received: by 2002:a17:906:d8db:b0:a19:a1ba:8cc2 with SMTP id re27-20020a170906d8db00b00a19a1ba8cc2mr1912234ejb.96.1702381027587; Tue, 12 Dec 2023 03:37:07 -0800 (PST) Received: from m1x-phil.lan ([176.176.175.193]) by smtp.gmail.com with ESMTPSA id tl1-20020a170907c30100b00a1c8d243cf7sm6097107ejc.2.2023.12.12.03.37.06 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 12 Dec 2023 03:37:07 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Warner Losh , Song Gao , Paolo Bonzini Subject: [PATCH 4/4] target: Restrict 'sysemu/reset.h' to system emulation Date: Tue, 12 Dec 2023 12:36:40 +0100 Message-ID: <20231212113640.30287-5-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231212113640.30287-1-philmd@linaro.org> References: <20231212113640.30287-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::532; envelope-from=philmd@linaro.org; helo=mail-ed1-x532.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 Reviewed-by: Thomas Huth Reviewed-by: Zhao Liu --- 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"