Message ID | 20230531040330.8950-42-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:4d8a:0:0:0:0:0 with SMTP id b10csp1062386wru; Tue, 30 May 2023 21:08:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4cDuE/7iM2+kIN3f6Qal8AoUEF1PlIpVcrq1iw8ClPONqFsZiQC71dhemrwx7uGB3nRs7b X-Received: by 2002:a05:6214:27e2:b0:621:700b:f9ef with SMTP id jt2-20020a05621427e200b00621700bf9efmr4952589qvb.15.1685506119333; Tue, 30 May 2023 21:08:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685506119; cv=none; d=google.com; s=arc-20160816; b=sW+Z2apolPSQmjvLgw+MzjoAnavEVM/pp3DGuxyy8TwYaLe+NBSqOKlF1o+oNsMcYb /zc9wY3+lXI/Vnispbv6JN1QuE2JmU+nGxSZLWg0oSWE76H8PMSLgd2lxgaLh8w1efD7 2vNR2Pd8ppgXKwnmNcAMWv6UMn/NsMRurwnpEcUgCQwCbly9fzIkt4oaUWU3slD6jdgN 2jUpdszXoNHGS0ag9/Asd9XtyVgzIfbtQx8J50eyLEwPFlZYToct/HXhsr6UhT/oSZyI njUOgs2UGzT+JIyH1NkS+2tkBBXU1b8C7La5wJP9C3mrMw4cqXC8SYZVYloC0aow0ViF maBA== 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=yAI6VIgzMZpgJduQw+zbfBfSRhC2iaxfwnzVojWouK0=; b=RoL1jE59b5vm4hEgbt6PGHXD9y7U5YsTrPy/I6Fpl9UA1LWdMWo6ANuZhOBBRDD26F FmOTHTw/dZPsWAOeupNRE3SOKxH9PqY5UPyYaoH2XYncpE2TWyBn0GUDBCqYFHjl0Jyt J1KjFXy7CE67i1K9D8Wxxg/Xr9YRKKoEwBFPo4XlAx+rFjvR8thc5qp9G2qF+g0XM3YS 14m2Lx5fJgrIHlqlyStKjvJeRhHJHAUPhem47MH4HsvQX8ewrrSl3PG/VroyA9OP+k+2 JuQXuCOiFm1xZhUCLbYLJW/1dI1IvdujsWNIMrdrOGfktLWAakC5WNaAH/lWGA5v+AAE CCXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iA770+uY; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id jq9-20020ad45fc9000000b005ef48626fbasi3436676qvb.250.2023.05.30.21.08.39 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 30 May 2023 21:08: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=iA770+uY; 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 <qemu-devel-bounces@nongnu.org>) id 1q4D7J-0003l6-NX; Wed, 31 May 2023 00:07:25 -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 <richard.henderson@linaro.org>) id 1q4D7B-0003CR-6A for qemu-devel@nongnu.org; Wed, 31 May 2023 00:07:14 -0400 Received: from mail-oi1-x231.google.com ([2607:f8b0:4864:20::231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1q4D76-0006uw-10 for qemu-devel@nongnu.org; Wed, 31 May 2023 00:07:12 -0400 Received: by mail-oi1-x231.google.com with SMTP id 5614622812f47-3982f09df74so3160426b6e.0 for <qemu-devel@nongnu.org>; Tue, 30 May 2023 21:07:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685506024; x=1688098024; 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=yAI6VIgzMZpgJduQw+zbfBfSRhC2iaxfwnzVojWouK0=; b=iA770+uYBYGS5/VOgIlxx7pKs6DjWHLUisT0lli5w8g6d+RS8rZrnRwHnDRfbAjL+l iFkYQh8GGrH7MIaqFfflOWIrM4JSNb4/aOS6wF/Plnv04GW7+ZG2KITfl8wBmIc/JqDW oSp5LcYrDciuB+NDzuIm9k+3Gq9Ml1fcgITXbtY4oKRDPbuH6ei0fgmYW3cbFHRnjWKz 04FhCgGPOrRLa5l0vkzHj7Ud7cRTuGEZrrrcplXt6Mz/JuDTzhAKDNywanT0ruLJTdxo c08IsQ6cnyfwnEMdv85owtr/1pLaB4l2fT8TZdHD6ERoDaqyxV0HxZPzNDPPH1ddU+dn g09Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685506024; x=1688098024; 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=yAI6VIgzMZpgJduQw+zbfBfSRhC2iaxfwnzVojWouK0=; b=WLzmpHwZfNSGyvSaT1/yAJ9Vn+U2+UNAmch2ImF0F/amG+/OAxph3kMGYmsEYX+Yip MQATzDZgWS/QLFKO7yjqawrzAo/Nk071/8Ty9WdPIhZD+oPaCzofbXn7VCThigXo8xSp Izk/huXlnKSQMvq5iIuwUiqhqrzMrw28ZihayG+rsjoIPk3iNEmtZ4v5nMDq1QSPYE+O BdyYpbAa5INGVr2YbAvEV5IuDJ456wV3/+tTh0da+ddq8gO0yPyFLTyGkjyYBw06D61z C90/Pgv+EHjNdPgHWhcBwNAiC04NHT6B+raugU9KinhD1phZk8y9DMUqp9IwZgSe+ADu Q8bw== X-Gm-Message-State: AC+VfDxfzdfKHyrvEfBLMbWQpENFylmyQ/VLymEQqEkJyUPZDdmgw93T ypqFTWoWZ4PjxGMP+DazwzZTsjaHOS7nisG4+XE= X-Received: by 2002:a05:6358:70e:b0:125:506d:36db with SMTP id e14-20020a056358070e00b00125506d36dbmr933263rwj.14.1685506023860; Tue, 30 May 2023 21:07:03 -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.03 for <qemu-devel@nongnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 21:07:03 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH v3 41/48] accel/tcg: Tidy includes for translator.[ch] Date: Tue, 30 May 2023 21:03:23 -0700 Message-Id: <20230531040330.8950-42-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 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::231; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x231.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, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
tcg: Build once for system, once for user
|
expand
|
On 31/5/23 06:03, Richard Henderson wrote: > Reduce the header to only bswap.h and cpu_ldst.h. > Move exec/translate-all.h to translator.c. > Reduce tcg.h and tcg-op.h to tcg-op-common.h. > Remove otherwise unused headers. > > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> > --- > include/exec/translator.h | 6 +----- > accel/tcg/translator.c | 8 +++----- > 2 files changed, 4 insertions(+), 10 deletions(-) Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
diff --git a/include/exec/translator.h b/include/exec/translator.h index 228002a623..224ae14aa7 100644 --- a/include/exec/translator.h +++ b/include/exec/translator.h @@ -18,12 +18,8 @@ * member in your target-specific DisasContext. */ - #include "qemu/bswap.h" -#include "exec/exec-all.h" -#include "exec/cpu_ldst.h" -#include "exec/translate-all.h" -#include "tcg/tcg.h" +#include "exec/cpu_ldst.h" /* for abi_ptr */ /** * gen_intermediate_code diff --git a/accel/tcg/translator.c b/accel/tcg/translator.c index 60a613c99d..fda4e7f637 100644 --- a/accel/tcg/translator.c +++ b/accel/tcg/translator.c @@ -8,15 +8,13 @@ */ #include "qemu/osdep.h" +#include "qemu/log.h" #include "qemu/error-report.h" -#include "tcg/tcg.h" -#include "tcg/tcg-op.h" #include "exec/exec-all.h" -#include "exec/log.h" #include "exec/translator.h" +#include "exec/translate-all.h" #include "exec/plugin-gen.h" -#include "exec/replay-core.h" - +#include "tcg/tcg-op-common.h" static void gen_io_start(void) {
Reduce the header to only bswap.h and cpu_ldst.h. Move exec/translate-all.h to translator.c. Reduce tcg.h and tcg-op.h to tcg-op-common.h. Remove otherwise unused headers. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- include/exec/translator.h | 6 +----- accel/tcg/translator.c | 8 +++----- 2 files changed, 4 insertions(+), 10 deletions(-)