]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
tcg: Rename tcg-target.c to tcg-target.inc.c
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 23 Feb 2016 14:49:41 +0000 (14:49 +0000)
committerRichard Henderson <rth@twiddle.net>
Tue, 23 Feb 2016 16:30:38 +0000 (08:30 -0800)
Rename the per-architecture tcg-target.c files to tcg-target.inc.c.
This makes it clearer that they are not intended to be standalone
C files, but are instead #included into another source file.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <1456238983-10160-2-git-send-email-peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
14 files changed:
qemu-tech.texi
tcg/README
tcg/aarch64/tcg-target.inc.c [moved from tcg/aarch64/tcg-target.c with 100% similarity]
tcg/arm/tcg-target.inc.c [moved from tcg/arm/tcg-target.c with 100% similarity]
tcg/i386/tcg-target.inc.c [moved from tcg/i386/tcg-target.c with 100% similarity]
tcg/ia64/tcg-target.inc.c [moved from tcg/ia64/tcg-target.c with 100% similarity]
tcg/mips/tcg-target.inc.c [moved from tcg/mips/tcg-target.c with 100% similarity]
tcg/ppc/tcg-target.inc.c [moved from tcg/ppc/tcg-target.c with 100% similarity]
tcg/s390/tcg-target.inc.c [moved from tcg/s390/tcg-target.c with 100% similarity]
tcg/sparc/tcg-target.inc.c [moved from tcg/sparc/tcg-target.c with 100% similarity]
tcg/tcg.c
tcg/tcg.h
tcg/tci/README
tcg/tci/tcg-target.inc.c [moved from tcg/tci/tcg-target.c with 100% similarity]

index 022017d55d55e3eb87dd7333fc923d50ffdb9d00..bdb2285f4e7f58f4c9a34d39e7487abd3ff416b7 100644 (file)
@@ -385,7 +385,7 @@ ops (see @code{target-i386/translate.c}). Some optimizations can be
 performed at this stage, including liveness analysis and trivial
 constant expression evaluation. TCG ops are then implemented in the
 host CPU back end, also known as TCG target (see
-@code{tcg/i386/tcg-target.c}). For more information, please take a
+@code{tcg/i386/tcg-target.inc.c}). For more information, please take a
 look at @code{tcg/README}.
 
 @node Condition code optimisations
index 34c0775cffbe112b581005bd129b72714ec58c36..f4a8ac170bf22182e0b7bf67da71499c8e2199bb 100644 (file)
@@ -460,8 +460,9 @@ function tcg_gen_xxx(args).
 
 4) Backend
 
-tcg-target.h contains the target specific definitions. tcg-target.c
-contains the target specific code.
+tcg-target.h contains the target specific definitions. tcg-target.inc.c
+contains the target specific code; it is #included by tcg/tcg.c, rather
+than being a standalone C file.
 
 4.1) Assumptions
 
index 86208a83eee045027f590000bf38298eab9b26a8..550671b94dbc7f31863a25654f99fb4b514879ec 100644 (file)
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -62,7 +62,8 @@
 #include "elf.h"
 #include "exec/log.h"
 
-/* Forward declarations for functions declared in tcg-target.c and used here. */
+/* Forward declarations for functions declared in tcg-target.inc.c and
+   used here. */
 static void tcg_target_init(TCGContext *s);
 static void tcg_target_qemu_prologue(TCGContext *s);
 static void patch_reloc(tcg_insn_unit *code_ptr, int type,
@@ -96,7 +97,7 @@ static void tcg_register_jit_int(void *buf, size_t size,
                                  size_t debug_frame_size)
     __attribute__((unused));
 
-/* Forward declarations for functions declared and used in tcg-target.c. */
+/* Forward declarations for functions declared and used in tcg-target.inc.c. */
 static int target_parse_constraint(TCGArgConstraint *ct, const char **pct_str);
 static void tcg_out_ld(TCGContext *s, TCGType type, TCGReg ret, TCGReg arg1,
                        intptr_t arg2);
@@ -250,7 +251,7 @@ TCGLabel *gen_new_label(void)
     return l;
 }
 
-#include "tcg-target.c"
+#include "tcg-target.inc.c"
 
 /* pool based memory allocation */
 void *tcg_malloc_internal(TCGContext *s, int size)
index d181694596735acfe0a8c82aac287bf1f6e29158..c45329a7cb63008b1be0a0104aa14bc2552f6bf6 100644 (file)
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -568,7 +568,7 @@ struct TCGContext {
 
     TBContext tb_ctx;
 
-    /* The TCGBackendData structure is private to tcg-target.c.  */
+    /* The TCGBackendData structure is private to tcg-target.inc.c.  */
     struct TCGBackendData *be;
 
     TCGTempSet free_temps[TCG_TYPE_COUNT * 2];
index dc57f076b5de5f13cf79d7c63883e6b9b95d54d6..3786b0915b51f6a18b5cfb0ffe090c83657896de 100644 (file)
@@ -21,7 +21,7 @@ This is what TCI (Tiny Code Interpreter) does.
 2) Implementation
 
 Like each TCG host frontend, TCI implements the code generator in
-tcg-target.c, tcg-target.h. Both files are in directory tcg/tci.
+tcg-target.inc.c, tcg-target.h. Both files are in directory tcg/tci.
 
 The additional file tcg/tci.c adds the interpreter.
 
@@ -123,7 +123,7 @@ u1 = linux-user-test works
   would also improve speed for hosts which support byte alignment).
 
 * A better disassembler for the pseudo code would be nice (a very primitive
-  disassembler is included in tcg-target.c).
+  disassembler is included in tcg-target.inc.c).
 
 * It might be useful to have a runtime option which selects the native TCG
   or TCI, so QEMU would have to include two TCGs. Today, selecting TCI