From patchwork Thu Mar 20 22:29:39 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 874993 Delivered-To: patch@linaro.org Received: by 2002:a5d:5f4c:0:b0:38f:210b:807b with SMTP id cm12csp574979wrb; Thu, 20 Mar 2025 15:36:33 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUCwjhfpmKNRC/Ur61caLY1xfOBeHkuSQmI0paLygO6hBze1cT7S3b4w3jkPK0W5rYxkBAsLg==@linaro.org X-Google-Smtp-Source: AGHT+IH3v9NeSldPKE7YDMedpCHgXFkRXA6ra7JgOpBdy+/0+3ytOq4J1UkAxE5p+g908O5EQRzd X-Received: by 2002:a05:622a:a30e:b0:477:1ee1:23d9 with SMTP id d75a77b69052e-4771ee124e0mr9366321cf.20.1742510193122; Thu, 20 Mar 2025 15:36:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1742510193; cv=none; d=google.com; s=arc-20240605; b=LAyY7xG/HfDseYTd8Ygy9rCC9KkTl0w30n+HV1uwMQtHovLy12v7sJzOSOXe/sEGAy LBuG0Pjn0oeiO+pCvhWCsvH7tKzbm8qevOcVdbLrd16XGhTfyL21Z5oxE9NjpNvmeNga n+3ZUak9XVVZsrxeF2ni16g/gY+aFymtzr/G2U15B4OKjdrMwZmcg+JqafmQtMnf2SOj FOQeSNtYpMLPn8XF6gsLMq/BpJcextGJL7Pl3qbC2T9Q2mzOZzAWnvxAuooMQU5xfIm1 mjYVBa3CVYchfNVufpVtjUvxDtFIVaglKs7jYYnqnwIVQswpdJObvXM6AAqWMkv8ig7K e3QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=xFqUHpOq6/zm0nogOBs1dNKROVvqoyXbuPu8a/iEMZk=; fh=nOkKbActdBXNisDSrdwXLE2FHRvxbNZxRZo5bVBICcQ=; b=gSya1/Vg1W8WVj0eCzWLo79xVRPb2gQyx7qaqEhM5IDsxym1HFYKarnQ+YzUszzTiS AQ3+bQ25/vycza+P1exIAdZVT+nLJQp7tgldzBs8IeosDFRsAVpcYfd5BUyGcPvn3QXU YxCpUyPqxVYD6/65637wxdmrTdnDM6sQcPkzYn6qgHNO8oYWJmjRqMqW6G+w9imWkLfZ f4aeq4YvYpGK3UNRm1N/yFOfWMxSnELJZG1t0QEjoi56F9g9T2z2pMTbfv8MGN8modlc U+f8/4pcn9IhKIkfCWhB1njkmQhfQf6YPEf7ZUlF3yAHjUxqHkBH2JNj8GMxwNaLtNJB Optg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i21sxuNs; 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-4771d52cfecsi7164381cf.365.2025.03.20.15.36.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Mar 2025 15:36:33 -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=i21sxuNs; 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 1tvOQO-0002wx-0z; Thu, 20 Mar 2025 18:31:41 -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 1tvOPM-0002RM-K8 for qemu-devel@nongnu.org; Thu, 20 Mar 2025 18:30:41 -0400 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tvOP9-00078B-Eu for qemu-devel@nongnu.org; Thu, 20 Mar 2025 18:30:31 -0400 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-2240b4de12bso36343685ad.2 for ; Thu, 20 Mar 2025 15:30:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1742509820; x=1743114620; 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=xFqUHpOq6/zm0nogOBs1dNKROVvqoyXbuPu8a/iEMZk=; b=i21sxuNsAz8f+fThjf6Fk/2evEFrvpbv1O4XRFXEpmHbcGeEg1cwua1OEtFOL0whg3 bS9D/svg3VygevKune3qAX37XcpKoLrOEp+b4FImyBHB5OOx22xkgrKvH4ZYgvde9lum nq9NYMjxxuiRBwKm4njGmPiwkhUATq/gZ0zH6/Q+88PlZJV8plIOgcOR2Z+4xZ0hyYwG GiQVh7+a2H2KZS5pDi4fKerRDx6hA+2eDl6m8BAktCQRNd6P7FDzPfpgZivUYSuQ7KV+ IT0guLLpKpTzYDiRJs1AN8vhjzI323g9MtWLuFLAvTuO927Vnrna34HoKTu5mUhu06r3 1q1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742509820; x=1743114620; 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=xFqUHpOq6/zm0nogOBs1dNKROVvqoyXbuPu8a/iEMZk=; b=Rcj1IxDxpvZ/djqi49TfB+pr1HycWlcpSwlamI3ZFGVnN5kqAlHJRPkYL7NcXi4ulb TF7Su1SrpW34OMGSO9HUlxFPFs92GYNteH1B2KWP3QiUFNUO88LYxPahDSvHerpi5UOj G2OYnv0MeAOqt6kfcpdc8XOJneaS4f1kFQsWXe5vOLHQbEnTcaax8vyCJEL+PUwW+qVi oJt4c8yd+lFmJI8A/mrKMCLmcc6kVoqYJtVp7X4+EzvRY8NS0zkh8r8w/IQYAdlbtiDY HRz/+pPueXgrYINXDNRsyrcUBbOMfg8D9o5QOGZ5aN2wh4pfQsaZbAJFGWj7YfeHcxo2 IYIg== X-Gm-Message-State: AOJu0YyIhRbKhXKKt4GSiZ0HO1fD4ruIl5WfW9ab12ftQ+w6dFdHr1Ap Gh2ccrDQ3wPEeIh/KNdSEMuEa7t8W4jdvrJ4agU/uO8QA2CoGGlq8uRGRtYTux5g2/abc/BL11m W X-Gm-Gg: ASbGncvCVRE1EBV7HyGhqciLW60JyuxrNv5CWTV8S3G71/xy5Nj+8o9QdSutFNu167i 4/vsk9cGvnXC69CI/DG7f6+DhkmMAKHWlZFyl7ZMXR+pos/vBGXUOof6d6AD4lwlXqrGdbVDjdj DEd+CN66KgZVjNDZAtyn+VBx4liGgjG/0x0FMUVb42CZylTqNVOrRo2TL+ZyxxMUA2qN7jC8cLC kWUm1BRbCRr6aLAAo23U5SEkSLX2VACAWJcjpMk4xGQlYW0kaBoWvw/EXH00w2MJG3i1RLOm9R/ Zbb4NuF070OwrpjpvmCweHNqpYsKAGoj4e06I2vPZEtf X-Received: by 2002:a17:903:32ce:b0:223:6180:1bf7 with SMTP id d9443c01a7336-22780e1557emr14650115ad.42.1742509820539; Thu, 20 Mar 2025 15:30:20 -0700 (PDT) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22780f4581csm3370145ad.59.2025.03.20.15.30.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Mar 2025 15:30:20 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, qemu-arm@nongnu.org, Peter Maydell , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Richard Henderson , =?utf-8?q?Alex_Benn=C3=A9?= =?utf-8?q?e?= , Pierrick Bouvier Subject: [PATCH v2 07/30] exec/cpu-all: remove tswap include Date: Thu, 20 Mar 2025 15:29:39 -0700 Message-Id: <20250320223002.2915728-8-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250320223002.2915728-1-pierrick.bouvier@linaro.org> References: <20250320223002.2915728-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x629.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 Signed-off-by: Pierrick Bouvier Reviewed-by: Richard Henderson --- include/exec/cpu-all.h | 1 - target/ppc/mmu-hash64.h | 2 ++ target/i386/tcg/system/excp_helper.c | 1 + target/i386/xsave_helper.c | 1 + target/riscv/vector_helper.c | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h index 4a2cac1252d..1539574a22a 100644 --- a/include/exec/cpu-all.h +++ b/include/exec/cpu-all.h @@ -21,7 +21,6 @@ #include "exec/cpu-common.h" #include "exec/cpu-interrupt.h" -#include "exec/tswap.h" #include "hw/core/cpu.h" /* page related stuff */ diff --git a/target/ppc/mmu-hash64.h b/target/ppc/mmu-hash64.h index ae8d4b37aed..b8fb12a9705 100644 --- a/target/ppc/mmu-hash64.h +++ b/target/ppc/mmu-hash64.h @@ -1,6 +1,8 @@ #ifndef MMU_HASH64_H #define MMU_HASH64_H +#include "exec/tswap.h" + #ifndef CONFIG_USER_ONLY #ifdef TARGET_PPC64 diff --git a/target/i386/tcg/system/excp_helper.c b/target/i386/tcg/system/excp_helper.c index b0b74df72fd..4badd739432 100644 --- a/target/i386/tcg/system/excp_helper.c +++ b/target/i386/tcg/system/excp_helper.c @@ -23,6 +23,7 @@ #include "exec/cputlb.h" #include "exec/page-protection.h" #include "exec/tlb-flags.h" +#include "exec/tswap.h" #include "tcg/helper-tcg.h" typedef struct TranslateParams { diff --git a/target/i386/xsave_helper.c b/target/i386/xsave_helper.c index 996e9f3bfef..24ab7be8e9a 100644 --- a/target/i386/xsave_helper.c +++ b/target/i386/xsave_helper.c @@ -5,6 +5,7 @@ #include "qemu/osdep.h" #include "cpu.h" +#include "exec/tswap.h" void x86_cpu_xsave_all_areas(X86CPU *cpu, void *buf, uint32_t buflen) { diff --git a/target/riscv/vector_helper.c b/target/riscv/vector_helper.c index ff05390baef..ff8b2b395f5 100644 --- a/target/riscv/vector_helper.c +++ b/target/riscv/vector_helper.c @@ -26,6 +26,7 @@ #include "exec/page-protection.h" #include "exec/helper-proto.h" #include "exec/tlb-flags.h" +#include "exec/tswap.h" #include "fpu/softfloat.h" #include "tcg/tcg-gvec-desc.h" #include "internals.h"