From patchwork Tue Sep 6 03:40:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Gibson X-Patchwork-Id: 9315567 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D5B1160760 for ; Tue, 6 Sep 2016 04:40:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C332C2851D for ; Tue, 6 Sep 2016 04:40:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B7C2D2857F; Tue, 6 Sep 2016 04:40:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E9CB32851D for ; Tue, 6 Sep 2016 04:40:41 +0000 (UTC) Received: from localhost ([::1]:58460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bh8Bc-0003qr-IS for patchwork-qemu-devel@patchwork.kernel.org; Tue, 06 Sep 2016 00:40:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bh7EG-00011k-Je for qemu-devel@nongnu.org; Mon, 05 Sep 2016 23:39:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bh7E7-0007Cd-K1 for qemu-devel@nongnu.org; Mon, 05 Sep 2016 23:39:20 -0400 Received: from ozlabs.org ([103.22.144.67]:59265) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bh7E6-0006zO-Tj; Mon, 05 Sep 2016 23:39:11 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 3sSslR3mkJz9sCZ; Tue, 6 Sep 2016 13:38:57 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1473133139; bh=vimOFpGPj/Oh6jX2qoz8duvrrMeSKBzM2McwIy5csJI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XxB82NOvhxvkwNonTaFxPRCmRdFL87yztUmU3wW7a8BJ1x0pNTPsoNnM87DLJhvnK Yq2PonA0M7iWHmd4Rr+uunMbi3cnQ60aLHTS8x/z3cgSBhoumx2PCgsTsF/m2+fufO hpcRrt8OzKgPxqfls+Svzd5oJueM5DjIbRZTre4I= From: David Gibson To: peter.maydell@linearo.org Date: Tue, 6 Sep 2016 13:40:41 +1000 Message-Id: <1473133253-17598-55-git-send-email-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1473133253-17598-1-git-send-email-david@gibson.dropbear.id.au> References: <1473133253-17598-1-git-send-email-david@gibson.dropbear.id.au> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 103.22.144.67 Subject: [Qemu-devel] [PULL 54/66] ppc: Rename #include'd .c files to .inc.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Gibson , qemu-ppc@nongnu.org, agraf@suse.de, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Benjamin Herrenschmidt Also while at it, group the #include statements in translate.c Signed-off-by: Benjamin Herrenschmidt Signed-off-by: David Gibson --- target-ppc/translate.c | 40 +++++++++++----------- .../translate/{dfp-impl.c => dfp-impl.inc.c} | 0 target-ppc/translate/{dfp-ops.c => dfp-ops.inc.c} | 0 target-ppc/translate/{fp-impl.c => fp-impl.inc.c} | 0 target-ppc/translate/{fp-ops.c => fp-ops.inc.c} | 0 .../translate/{spe-impl.c => spe-impl.inc.c} | 0 target-ppc/translate/{spe-ops.c => spe-ops.inc.c} | 0 .../translate/{vmx-impl.c => vmx-impl.inc.c} | 0 target-ppc/translate/{vmx-ops.c => vmx-ops.inc.c} | 0 .../translate/{vsx-impl.c => vsx-impl.inc.c} | 0 target-ppc/translate/{vsx-ops.c => vsx-ops.inc.c} | 0 11 files changed, 20 insertions(+), 20 deletions(-) rename target-ppc/translate/{dfp-impl.c => dfp-impl.inc.c} (100%) rename target-ppc/translate/{dfp-ops.c => dfp-ops.inc.c} (100%) rename target-ppc/translate/{fp-impl.c => fp-impl.inc.c} (100%) rename target-ppc/translate/{fp-ops.c => fp-ops.inc.c} (100%) rename target-ppc/translate/{spe-impl.c => spe-impl.inc.c} (100%) rename target-ppc/translate/{spe-ops.c => spe-ops.inc.c} (100%) rename target-ppc/translate/{vmx-impl.c => vmx-impl.inc.c} (100%) rename target-ppc/translate/{vmx-ops.c => vmx-ops.inc.c} (100%) rename target-ppc/translate/{vsx-impl.c => vsx-impl.inc.c} (100%) rename target-ppc/translate/{vsx-ops.c => vsx-ops.inc.c} (100%) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 14f4b68..0a5a3e2 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -5316,12 +5316,6 @@ static void gen_rfsvc(DisasContext *ctx) #endif /* defined(CONFIG_USER_ONLY) */ } -#include "translate/fp-impl.c" - -#include "translate/vmx-impl.c" - -#include "translate/vsx-impl.c" - /* svc is not implemented for now */ /* BookE specific instructions */ @@ -6108,10 +6102,6 @@ static void gen_maddhd_maddhdu(DisasContext *ctx) } #endif /* defined(TARGET_PPC64) */ -#include "translate/dfp-impl.c" - -#include "translate/spe-impl.c" - static void gen_tbegin(DisasContext *ctx) { if (unlikely(!ctx->tm_enabled)) { @@ -6191,6 +6181,16 @@ static inline void gen_##name(DisasContext *ctx) \ GEN_TM_PRIV_NOOP(treclaim); GEN_TM_PRIV_NOOP(trechkpt); +#include "translate/fp-impl.inc.c" + +#include "translate/vmx-impl.inc.c" + +#include "translate/vsx-impl.inc.c" + +#include "translate/dfp-impl.inc.c" + +#include "translate/spe-impl.inc.c" + static opcode_t opcodes[] = { GEN_HANDLER(invalid, 0x00, 0x00, 0x00, 0xFFFFFFFF, PPC_NONE), GEN_HANDLER(cmp, 0x1F, 0x00, 0x00, 0x00400000, PPC_INTEGER), @@ -6715,16 +6715,6 @@ GEN_MAC_HANDLER(mulhhwu, 0x08, 0x00), GEN_MAC_HANDLER(mullhw, 0x08, 0x0D), GEN_MAC_HANDLER(mullhwu, 0x08, 0x0C), -#include "translate/fp-ops.c" - -#include "translate/vmx-ops.c" - -#include "translate/vsx-ops.c" - -#include "translate/dfp-ops.c" - -#include "translate/spe-ops.c" - GEN_HANDLER2_E(tbegin, "tbegin", 0x1F, 0x0E, 0x14, 0x01DFF800, \ PPC_NONE, PPC2_TM), GEN_HANDLER2_E(tend, "tend", 0x1F, 0x0E, 0x15, 0x01FFF800, \ @@ -6747,6 +6737,16 @@ GEN_HANDLER2_E(treclaim, "treclaim", 0x1F, 0x0E, 0x1D, 0x03E0F800, \ PPC_NONE, PPC2_TM), GEN_HANDLER2_E(trechkpt, "trechkpt", 0x1F, 0x0E, 0x1F, 0x03FFF800, \ PPC_NONE, PPC2_TM), + +#include "translate/fp-ops.inc.c" + +#include "translate/vmx-ops.inc.c" + +#include "translate/vsx-ops.inc.c" + +#include "translate/dfp-ops.inc.c" + +#include "translate/spe-ops.inc.c" }; #include "helper_regs.h" diff --git a/target-ppc/translate/dfp-impl.c b/target-ppc/translate/dfp-impl.inc.c similarity index 100% rename from target-ppc/translate/dfp-impl.c rename to target-ppc/translate/dfp-impl.inc.c diff --git a/target-ppc/translate/dfp-ops.c b/target-ppc/translate/dfp-ops.inc.c similarity index 100% rename from target-ppc/translate/dfp-ops.c rename to target-ppc/translate/dfp-ops.inc.c diff --git a/target-ppc/translate/fp-impl.c b/target-ppc/translate/fp-impl.inc.c similarity index 100% rename from target-ppc/translate/fp-impl.c rename to target-ppc/translate/fp-impl.inc.c diff --git a/target-ppc/translate/fp-ops.c b/target-ppc/translate/fp-ops.inc.c similarity index 100% rename from target-ppc/translate/fp-ops.c rename to target-ppc/translate/fp-ops.inc.c diff --git a/target-ppc/translate/spe-impl.c b/target-ppc/translate/spe-impl.inc.c similarity index 100% rename from target-ppc/translate/spe-impl.c rename to target-ppc/translate/spe-impl.inc.c diff --git a/target-ppc/translate/spe-ops.c b/target-ppc/translate/spe-ops.inc.c similarity index 100% rename from target-ppc/translate/spe-ops.c rename to target-ppc/translate/spe-ops.inc.c diff --git a/target-ppc/translate/vmx-impl.c b/target-ppc/translate/vmx-impl.inc.c similarity index 100% rename from target-ppc/translate/vmx-impl.c rename to target-ppc/translate/vmx-impl.inc.c diff --git a/target-ppc/translate/vmx-ops.c b/target-ppc/translate/vmx-ops.inc.c similarity index 100% rename from target-ppc/translate/vmx-ops.c rename to target-ppc/translate/vmx-ops.inc.c diff --git a/target-ppc/translate/vsx-impl.c b/target-ppc/translate/vsx-impl.inc.c similarity index 100% rename from target-ppc/translate/vsx-impl.c rename to target-ppc/translate/vsx-impl.inc.c diff --git a/target-ppc/translate/vsx-ops.c b/target-ppc/translate/vsx-ops.inc.c similarity index 100% rename from target-ppc/translate/vsx-ops.c rename to target-ppc/translate/vsx-ops.inc.c