mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-07-21 11:18:32 +00:00
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:
parent
d609ab30c2
commit
7784a25470
|
@ -61,7 +61,8 @@
|
||||||
|
|
||||||
#include "elf.h"
|
#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_init(TCGContext *s);
|
||||||
static void tcg_target_qemu_prologue(TCGContext *s);
|
static void tcg_target_qemu_prologue(TCGContext *s);
|
||||||
static void patch_reloc(tcg_insn_unit *code_ptr, int type,
|
static void patch_reloc(tcg_insn_unit *code_ptr, int type,
|
||||||
|
@ -92,7 +93,7 @@ QEMU_PACK( typedef struct {
|
||||||
DebugFrameFDEHeader fde;
|
DebugFrameFDEHeader fde;
|
||||||
}) DebugFrameHeader;
|
}) 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 int target_parse_constraint(TCGArgConstraint *ct, const char **pct_str);
|
||||||
static void tcg_out_ld(TCGContext *s, TCGType type, TCGReg ret, TCGReg arg1,
|
static void tcg_out_ld(TCGContext *s, TCGType type, TCGReg ret, TCGReg arg1,
|
||||||
intptr_t arg2);
|
intptr_t arg2);
|
||||||
|
@ -238,7 +239,7 @@ TCGLabel *gen_new_label(TCGContext *s)
|
||||||
return l;
|
return l;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "tcg-target.c"
|
#include "tcg-target.inc.c"
|
||||||
|
|
||||||
/* pool based memory allocation */
|
/* pool based memory allocation */
|
||||||
void *tcg_malloc_internal(TCGContext *s, int size)
|
void *tcg_malloc_internal(TCGContext *s, int size)
|
||||||
|
|
|
@ -696,7 +696,7 @@ struct TCGContext {
|
||||||
|
|
||||||
TBContext tb_ctx;
|
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;
|
struct TCGBackendData *be;
|
||||||
|
|
||||||
TCGTempSet free_temps[TCG_TYPE_COUNT * 2];
|
TCGTempSet free_temps[TCG_TYPE_COUNT * 2];
|
||||||
|
|
Loading…
Reference in a new issue