tcg: Rename tcg-target.c to tcg-target.inc.c

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.

Backports commit ce151109813e2770fd3cee2f37bfa2cdd01a12b9 from qemu
This commit is contained in:
Peter Maydell 2018-02-20 20:38:57 -05:00 committed by Lioncash
parent d609ab30c2
commit 7784a25470
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7
9 changed files with 5 additions and 4 deletions

View file

@ -61,7 +61,8 @@
#include "elf.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,
@ -92,7 +93,7 @@ QEMU_PACK( typedef struct {
DebugFrameFDEHeader fde;
}) DebugFrameHeader;
/* 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);
@ -238,7 +239,7 @@ TCGLabel *gen_new_label(TCGContext *s)
return l;
}
#include "tcg-target.c"
#include "tcg-target.inc.c"
/* pool based memory allocation */
void *tcg_malloc_internal(TCGContext *s, int size)

View file

@ -696,7 +696,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];