From patchwork Wed May 31 04:03:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 687260 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d8a:0:0:0:0:0 with SMTP id b10csp1063140wru; Tue, 30 May 2023 21:11:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7jVbZ5hYnCxankpN9wacC2gZef9CtrYRIAkcHkTeORhYMbq7+m6nMO3ABbttU12+HB230L X-Received: by 2002:a05:6214:621:b0:625:947f:d2b8 with SMTP id a1-20020a056214062100b00625947fd2b8mr4883648qvx.11.1685506284124; Tue, 30 May 2023 21:11:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685506284; cv=none; d=google.com; s=arc-20160816; b=IpdadHhPKVI6oxAsfsS2XfpH+H7YZwkFMhbRdhR02r0Y78KCwJjSeBFlIxE7qGnmnZ vZtmmBn3tdkhgdgDFOrCVdRpMekHOG5lrqzjqzXdccGV5OxEr3aPLLSVqfoCFePmfwN+ Zrs7qqoKbe4ss566E5xOapJ/H+lhA7J51XkCF97iKyqKGH+MJTx5GunbjHUW2brDR3GY vGMs99GPK3OP938J69A5kKzshJY0Lio9JfgxAekI8/OJBpeF3C/rhkfzDGfpH68/G2Fa HagoILQjpQRZnDY28rvgaRPxe1rh+N71zhEDVEfqtwdGVnyFCAgQRT/1zwcukvfWapmr FK4Q== 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:to:from :dkim-signature; bh=9NLGFkJgE9FrhdZMJ/Ft9ko/YgwN2oBNWIu/qZT+vhY=; b=DqX6ElKlIiLnPE1HQcEeWJFzufmCl95/3QTKAKQxn6l/bWAG6HEFR5sIBFIE60ojBT bk1vnPAkWPG+eI0SR5/MqmH2QQMhWz8o0fG6TpP1vj35aExj7WpqQvq1fEgTnhS9u/Mc 7x653X6qwWRbLcj7svcFnAJxkZqZ/QHj1e5Jjao7gSiFsRIo0lmaW6OkiDIp97zN/UQE WJ3346TPthSyrtBNXiATO9iGt6OnF3JpnJWpSV5M4imLNlWUXEkJnJkiP8iWTxVzZ1l1 Cv77VU1a6jFZ5MtqMVZbfTNZyVZjbSb2WM4QZ7pyt+tdk3Iz9CzTz5prEQL7rBZN0Oub Y1FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Er4Qby4X; 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 if14-20020a0562141c4e00b00625a6ecdf71si3114004qvb.112.2023.05.30.21.11.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 30 May 2023 21:11:24 -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=Er4Qby4X; 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 1q4D7H-0003Zo-Fg; Wed, 31 May 2023 00:07:19 -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 1q4D79-000398-4y for qemu-devel@nongnu.org; Wed, 31 May 2023 00:07:12 -0400 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q4D76-0006vY-9j for qemu-devel@nongnu.org; Wed, 31 May 2023 00:07:10 -0400 Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-64d3e5e5980so6123696b3a.2 for ; Tue, 30 May 2023 21:07:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685506027; x=1688098027; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=9NLGFkJgE9FrhdZMJ/Ft9ko/YgwN2oBNWIu/qZT+vhY=; b=Er4Qby4XQUgXUyjTQG/plcgQZddMgU2wmsuBcpsGWuZ97mPjcPzKpVY+N+szqL0Gs/ 68YT7fWEUns6J8fTXkR0ud+wFV04eMEGcDItbYaGPL8XaMSxf6jTamVuX9yJnWkH49lW wSA0Ve4EPUmPXnNNQAGxcLsbNC4lXq33P8DYDsMQfZJ+6EhsY+vUYxguEQzYrcFPz7Ig a8K9SZS4pjbAl9Rvj7TxpUKxECTvNZIcGJnakcIisK2MfzsTuM6BAVaLADtSdy7twOw0 0KhiUEqAVR3yKYwyDhuFtU3filB9Qm1GYnwUIoyTtrC/LbkjuuC2M0qjoqmBYPTggBIY iRyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685506027; x=1688098027; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9NLGFkJgE9FrhdZMJ/Ft9ko/YgwN2oBNWIu/qZT+vhY=; b=Tm5DIYQvxCRkxtZKoJ2LV1NURgBpSE1m7laT4QtH3IAKIpYbAstazjdQfd3yAjB9LM mQ5mfAKO/1pMweURkIvr4940Xg6asRo4WVV/U8F3kr/gxEnLYWQmPKEEJ8tw+x4RamB6 MbbJqZ2Qhy7jHu6zKBFM/cpscSDT49dQCtX9QbrUoEbBpSA2v024ASWgh36cMWZk9nf2 dsHA5p3XBldQ3yxpLfbMpFaPYqcFs4oM2UN7hLBtfKakLsjc2DPRRamY2MIoNf3vdhkP ZmK4DITDnoAbTO/kDWcqXdOUIk/9hI4gtoHjCIlOk/ulXd25DVUeLqOIUJ5uHvPMcEzf 69ig== X-Gm-Message-State: AC+VfDzt0bHIDyUV4J2UbXToYnm5o155XbTtJ4XmP2RxojxGBjFa5d12 MhJSDl2buo90FeyQ0EQuZ3dKLtzChle8dD0QBkY= X-Received: by 2002:a05:6a20:549a:b0:10f:fea:1997 with SMTP id i26-20020a056a20549a00b0010f0fea1997mr5531048pzk.5.1685506026753; Tue, 30 May 2023 21:07:06 -0700 (PDT) Received: from stoup.. ([2602:ae:1598:4c01:1cd:ec7a:a720:ce9a]) by smtp.gmail.com with ESMTPSA id h13-20020a170902f7cd00b001aadd0d7364sm151797plw.83.2023.05.30.21.07.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 21:07:06 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 44/48] tcg: Remove target-specific headers from tcg.[ch] Date: Tue, 30 May 2023 21:03:26 -0700 Message-Id: <20230531040330.8950-45-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230531040330.8950-1-richard.henderson@linaro.org> References: <20230531040330.8950-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::433; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x433.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=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 This finally paves the way for tcg/ to be built once per mode. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- include/tcg/tcg.h | 1 - accel/tcg/plugin-gen.c | 1 + tcg/region.c | 2 +- tcg/tcg-op.c | 2 +- tcg/tcg.c | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h index 635fa53fdb..a498f31967 100644 --- a/include/tcg/tcg.h +++ b/include/tcg/tcg.h @@ -25,7 +25,6 @@ #ifndef TCG_H #define TCG_H -#include "cpu.h" #include "exec/memop.h" #include "exec/memopidx.h" #include "qemu/bitops.h" diff --git a/accel/tcg/plugin-gen.c b/accel/tcg/plugin-gen.c index 3e528f191d..5c13615112 100644 --- a/accel/tcg/plugin-gen.c +++ b/accel/tcg/plugin-gen.c @@ -43,6 +43,7 @@ * CPU's index into a TCG temp, since the first callback did it already. */ #include "qemu/osdep.h" +#include "cpu.h" #include "tcg/tcg.h" #include "tcg/tcg-temp-internal.h" #include "tcg/tcg-op.h" diff --git a/tcg/region.c b/tcg/region.c index f8410ba5db..2b28ed3556 100644 --- a/tcg/region.c +++ b/tcg/region.c @@ -30,8 +30,8 @@ #include "qemu/cacheinfo.h" #include "qemu/qtree.h" #include "qapi/error.h" -#include "exec/exec-all.h" #include "tcg/tcg.h" +#include "exec/translation-block.h" #include "tcg-internal.h" diff --git a/tcg/tcg-op.c b/tcg/tcg-op.c index 8c1ad49c4e..c07de5d9f8 100644 --- a/tcg/tcg-op.c +++ b/tcg/tcg-op.c @@ -23,10 +23,10 @@ */ #include "qemu/osdep.h" -#include "exec/exec-all.h" #include "tcg/tcg.h" #include "tcg/tcg-temp-internal.h" #include "tcg/tcg-op-common.h" +#include "exec/translation-block.h" #include "exec/plugin-gen.h" #include "tcg-internal.h" diff --git a/tcg/tcg.c b/tcg/tcg.c index 41186f540f..3fcd0d9f32 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -34,7 +34,7 @@ #include "qemu/cacheflush.h" #include "qemu/cacheinfo.h" #include "qemu/timer.h" -#include "exec/exec-all.h" +#include "exec/translation-block.h" #include "exec/tlb-common.h" #include "tcg/tcg-op-common.h"