aboutsummaryrefslogtreecommitdiff
path: root/target-ppc
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2016-08-01 20:17:42 +1000
committerDavid Gibson <david@gibson.dropbear.id.au>2016-09-07 12:40:12 +1000
commit15848410af5caccb7ca419654e46b0ce42d6bf4b (patch)
tree429e203db016b878c7a2dd737d297c50e2ab7363 /target-ppc
parent787bbe3711725c66c2c24b0afad487beb76fe9e7 (diff)
ppc: Rename #include'd .c files to .inc.c
Also while at it, group the #include statements in translate.c Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target-ppc')
-rw-r--r--target-ppc/translate.c40
-rw-r--r--target-ppc/translate/dfp-impl.inc.c (renamed from target-ppc/translate/dfp-impl.c)0
-rw-r--r--target-ppc/translate/dfp-ops.inc.c (renamed from target-ppc/translate/dfp-ops.c)0
-rw-r--r--target-ppc/translate/fp-impl.inc.c (renamed from target-ppc/translate/fp-impl.c)0
-rw-r--r--target-ppc/translate/fp-ops.inc.c (renamed from target-ppc/translate/fp-ops.c)0
-rw-r--r--target-ppc/translate/spe-impl.inc.c (renamed from target-ppc/translate/spe-impl.c)0
-rw-r--r--target-ppc/translate/spe-ops.inc.c (renamed from target-ppc/translate/spe-ops.c)0
-rw-r--r--target-ppc/translate/vmx-impl.inc.c (renamed from target-ppc/translate/vmx-impl.c)0
-rw-r--r--target-ppc/translate/vmx-ops.inc.c (renamed from target-ppc/translate/vmx-ops.c)0
-rw-r--r--target-ppc/translate/vsx-impl.inc.c (renamed from target-ppc/translate/vsx-impl.c)0
-rw-r--r--target-ppc/translate/vsx-ops.inc.c (renamed from target-ppc/translate/vsx-ops.c)0
11 files changed, 20 insertions, 20 deletions
diff --git a/target-ppc/translate.c b/target-ppc/translate.c
index 14f4b682f4..0a5a3e21f0 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
index 178d3044a7..178d3044a7 100644
--- a/target-ppc/translate/dfp-impl.c
+++ b/target-ppc/translate/dfp-impl.inc.c
diff --git a/target-ppc/translate/dfp-ops.c b/target-ppc/translate/dfp-ops.inc.c
index 6ef38e5712..6ef38e5712 100644
--- a/target-ppc/translate/dfp-ops.c
+++ b/target-ppc/translate/dfp-ops.inc.c
diff --git a/target-ppc/translate/fp-impl.c b/target-ppc/translate/fp-impl.inc.c
index 9ba9289157..9ba9289157 100644
--- a/target-ppc/translate/fp-impl.c
+++ b/target-ppc/translate/fp-impl.inc.c
diff --git a/target-ppc/translate/fp-ops.c b/target-ppc/translate/fp-ops.inc.c
index 291a1e62d0..291a1e62d0 100644
--- a/target-ppc/translate/fp-ops.c
+++ b/target-ppc/translate/fp-ops.inc.c
diff --git a/target-ppc/translate/spe-impl.c b/target-ppc/translate/spe-impl.inc.c
index 0ce403a861..0ce403a861 100644
--- a/target-ppc/translate/spe-impl.c
+++ b/target-ppc/translate/spe-impl.inc.c
diff --git a/target-ppc/translate/spe-ops.c b/target-ppc/translate/spe-ops.inc.c
index 7efe8b8746..7efe8b8746 100644
--- a/target-ppc/translate/spe-ops.c
+++ b/target-ppc/translate/spe-ops.inc.c
diff --git a/target-ppc/translate/vmx-impl.c b/target-ppc/translate/vmx-impl.inc.c
index b9841222ea..b9841222ea 100644
--- a/target-ppc/translate/vmx-impl.c
+++ b/target-ppc/translate/vmx-impl.inc.c
diff --git a/target-ppc/translate/vmx-ops.c b/target-ppc/translate/vmx-ops.inc.c
index 2a9f225e6a..2a9f225e6a 100644
--- a/target-ppc/translate/vmx-ops.c
+++ b/target-ppc/translate/vmx-ops.inc.c
diff --git a/target-ppc/translate/vsx-impl.c b/target-ppc/translate/vsx-impl.inc.c
index 9f77b06bd8..9f77b06bd8 100644
--- a/target-ppc/translate/vsx-impl.c
+++ b/target-ppc/translate/vsx-impl.inc.c
diff --git a/target-ppc/translate/vsx-ops.c b/target-ppc/translate/vsx-ops.inc.c
index 8b9da65444..8b9da65444 100644
--- a/target-ppc/translate/vsx-ops.c
+++ b/target-ppc/translate/vsx-ops.inc.c