From patchwork Mon Jun 5 20:15:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 689263 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d8a:0:0:0:0:0 with SMTP id b10csp2288453wru; Mon, 5 Jun 2023 13:26:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7DXvjNc9ICp/VQSqkApF7NppSTfv8WAc5ghA8yGQO5r7qBDa4X8P7bo0Fyjice1p5QSWEA X-Received: by 2002:a05:620a:8d0e:b0:75e:c30a:81b5 with SMTP id rb14-20020a05620a8d0e00b0075ec30a81b5mr741408qkn.9.1685996799040; Mon, 05 Jun 2023 13:26:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685996799; cv=none; d=google.com; s=arc-20160816; b=MtYBlJgFBo4ixSdrE7H2sZ5Z899zALGKPN9gkee9MZfixuelhniKRRO/JwwLgTWOlH ybqXIRAXwrdZGP/KTFeda2Y9TUZJrxqctmQmh/ykge1qhy7Irxs4+ohLDFXJT7Ja7Syo KenUVP5IA5sNva4Ti+6OmkytYYjpTWPNy3pJxExiPS3+3TDlSo/w4eXJCE4Z9HNk+mOr HM0iv1k33IYYIQeA+hRZn0Iy59+ALcegCCDndl4IcQVchabMFr6CVpuZ5G1GUWuv1KgC oBNx+ryTaGI2xjQGx6tfYNA62ovTTKiTbelqdl9ZMa5AFiUrevqL4FHRkVWwpJC5SDat 6xaw== 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=06J6sEoIXDqd7QsL1obTrgiIStslrSK/3y4osdeVahY=; b=ZIjAyNg0l3aIk6ds+hQddt1oxFThBmTB5Wb7Tn7euy1fBRy7Ee+UKjW5knIUmi6poR 2slo6k+bogrzl6kcu3ZffajVcmFx4XVBcrAlSZA7vUACVOKB7FJFipj89yWgn2KU1NWe vhdbrEP7COr2g5mUhx1czkoGt1ZxMvxGcT0kTdzwSnD0coR7ucVNurQZINixh4QQUMxu qNgYUT5XjN3DuAuW+Lp4BNJjQhWW293YqjmkWvukvAnwcOsYbLDPZtz0DPByExwudIlM wQp/lIgedHRr5JXmPtqPgC2OeNvumXUbuQG0DZbj0J6j1TG38Tiig8bHmd6pFaHurRk1 GFdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xd3xISj0; 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 d23-20020a05620a141700b0075d969ed4f0si656670qkj.691.2023.06.05.13.26.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Jun 2023 13:26:39 -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=xd3xISj0; 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 1q6GgK-0007OS-4x; Mon, 05 Jun 2023 16:20:00 -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 1q6Gfv-0006uK-0d for qemu-devel@nongnu.org; Mon, 05 Jun 2023 16:19:35 -0400 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q6Gfr-0005lS-7W for qemu-devel@nongnu.org; Mon, 05 Jun 2023 16:19:32 -0400 Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1b04949e5baso46261595ad.0 for ; Mon, 05 Jun 2023 13:19:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685996370; x=1688588370; 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=06J6sEoIXDqd7QsL1obTrgiIStslrSK/3y4osdeVahY=; b=xd3xISj0aNwjMnyhWZ2hinG2d9Zal3hHG5huaK3v6lK0fBA+8TJUsknYKROGC6NKMZ XIUG5h0msNVdmyzXi0Zzm7vexME4ClJhZtGsH+ISUugvaTELDuaPKTV0aU0yY/VgdQK8 0MHgdq+/syoryxSOHIsTVlj/uGoIFtQ6HZESoUt6Vk+WBIGViloDcBEN/mEVfG5xUl+I YepyqWSGYHs1WM8KWdWVcnWrp2T7ZLmjPNKZwr/vav0ZOd1hDF+VYCNl1HWg7J7TIyLc scNaJFVlVS0bU85xps5DKNu9TDaRKAjsbroFNO5cZ0dEOxDjWbI8vVm94s+KzCFuFAa/ t6og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685996370; x=1688588370; 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=06J6sEoIXDqd7QsL1obTrgiIStslrSK/3y4osdeVahY=; b=BjtghECWPR5zqQ0ekuvb7ujC3BW0svInNOsWQi7GghEqhmOos0M0E/5nQGAcSjf83t dr6tHx8zuXfCpOT6LcET7VNSSg5/8/2v0fq1d9NtNWht78f5ZI3OGwqEzWtL/rbyN0xQ INioatBNUCuPERFbQxOgOQK/8ZU+0DVKrTdznJ/QBYcdW+KbfBXyVi3YwoNynWF30qJ9 2sWIEYicqGsEY7Aiu+PErNpBMM/i64+Ib60J2oiobI/5mmlx9OeT2Zm0SnaACRmrD3xE h16K3Qqoyv8yZZBfCtHJg5Qe4EOaoi0zqoDvabYt9anOxPANzQE5AH8e+IAifM+cvhX6 xnSw== X-Gm-Message-State: AC+VfDx1GGIHF87SAnjpDRB7wjGVW1U7gAFficZ5/8QBYDwx/0CXwm/R WQUqbD5V1l7zourKDnOwlQYMsWta9fw5m9ayuGc= X-Received: by 2002:a17:903:1208:b0:1ae:6135:a050 with SMTP id l8-20020a170903120800b001ae6135a050mr51703plh.19.1685996370028; Mon, 05 Jun 2023 13:19:30 -0700 (PDT) Received: from stoup.. ([2602:ae:1598:4c01:3f85:a600:6a3e:e465]) by smtp.gmail.com with ESMTPSA id w20-20020a170902c79400b001a980a23802sm7018184pla.111.2023.06.05.13.19.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jun 2023 13:19:29 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 46/52] tcg: Remove target-specific headers from tcg.[ch] Date: Mon, 5 Jun 2023 13:15:42 -0700 Message-Id: <20230605201548.1596865-47-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230605201548.1596865-1-richard.henderson@linaro.org> References: <20230605201548.1596865-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62c.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. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- 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"