mirror of
https://github.com/xemu-project/xemu.git
synced 2025-02-04 11:09:05 +00:00
tcg: Remove TCG_TARGET_CON_STR_H
All backends have now been converted to tcg-target-con-str.h, so we can remove the fallback code. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
77f268e80b
commit
8c07f3262e
@ -155,6 +155,5 @@ void tb_target_set_jmp_target(uintptr_t, uintptr_t, uintptr_t, uintptr_t);
|
||||
#define TCG_TARGET_NEED_LDST_LABELS
|
||||
#endif
|
||||
#define TCG_TARGET_NEED_POOL_LABELS
|
||||
#define TCG_TARGET_CON_STR_H
|
||||
|
||||
#endif /* AARCH64_TCG_TARGET_H */
|
||||
|
@ -142,6 +142,5 @@ void tb_target_set_jmp_target(uintptr_t, uintptr_t, uintptr_t, uintptr_t);
|
||||
#define TCG_TARGET_NEED_LDST_LABELS
|
||||
#endif
|
||||
#define TCG_TARGET_NEED_POOL_LABELS
|
||||
#define TCG_TARGET_CON_STR_H
|
||||
|
||||
#endif
|
||||
|
@ -235,6 +235,5 @@ static inline void tb_target_set_jmp_target(uintptr_t tc_ptr, uintptr_t jmp_rx,
|
||||
#define TCG_TARGET_NEED_LDST_LABELS
|
||||
#endif
|
||||
#define TCG_TARGET_NEED_POOL_LABELS
|
||||
#define TCG_TARGET_CON_STR_H
|
||||
|
||||
#endif
|
||||
|
@ -207,6 +207,5 @@ void tb_target_set_jmp_target(uintptr_t, uintptr_t, uintptr_t, uintptr_t);
|
||||
#ifdef CONFIG_SOFTMMU
|
||||
#define TCG_TARGET_NEED_LDST_LABELS
|
||||
#endif
|
||||
#define TCG_TARGET_CON_STR_H
|
||||
|
||||
#endif
|
||||
|
@ -185,6 +185,5 @@ void tb_target_set_jmp_target(uintptr_t, uintptr_t, uintptr_t, uintptr_t);
|
||||
#define TCG_TARGET_NEED_LDST_LABELS
|
||||
#endif
|
||||
#define TCG_TARGET_NEED_POOL_LABELS
|
||||
#define TCG_TARGET_CON_STR_H
|
||||
|
||||
#endif
|
||||
|
@ -171,6 +171,5 @@ void tb_target_set_jmp_target(uintptr_t, uintptr_t, uintptr_t, uintptr_t);
|
||||
#define TCG_TARGET_NEED_POOL_LABELS
|
||||
|
||||
#define TCG_TARGET_HAS_MEMORY_BSWAP 0
|
||||
#define TCG_TARGET_CON_STR_H
|
||||
|
||||
#endif
|
||||
|
@ -159,6 +159,5 @@ static inline void tb_target_set_jmp_target(uintptr_t tc_ptr, uintptr_t jmp_rx,
|
||||
#define TCG_TARGET_NEED_LDST_LABELS
|
||||
#endif
|
||||
#define TCG_TARGET_NEED_POOL_LABELS
|
||||
#define TCG_TARGET_CON_STR_H
|
||||
|
||||
#endif
|
||||
|
@ -168,6 +168,5 @@ extern bool use_vis3_instructions;
|
||||
void tb_target_set_jmp_target(uintptr_t, uintptr_t, uintptr_t, uintptr_t);
|
||||
|
||||
#define TCG_TARGET_NEED_POOL_LABELS
|
||||
#define TCG_TARGET_CON_STR_H
|
||||
|
||||
#endif
|
||||
|
16
tcg/tcg.c
16
tcg/tcg.c
@ -103,10 +103,6 @@ static void tcg_register_jit_int(const void *buf, size_t size,
|
||||
__attribute__((unused));
|
||||
|
||||
/* Forward declarations for functions declared and used in tcg-target.c.inc. */
|
||||
#ifndef TCG_TARGET_CON_STR_H
|
||||
static const char *target_parse_constraint(TCGArgConstraint *ct,
|
||||
const char *ct_str, TCGType type);
|
||||
#endif
|
||||
static void tcg_out_ld(TCGContext *s, TCGType type, TCGReg ret, TCGReg arg1,
|
||||
intptr_t arg2);
|
||||
static bool tcg_out_mov(TCGContext *s, TCGType type, TCGReg ret, TCGReg arg);
|
||||
@ -2464,7 +2460,6 @@ static void process_op_defs(TCGContext *s)
|
||||
ct_str++;
|
||||
break;
|
||||
|
||||
#ifdef TCG_TARGET_CON_STR_H
|
||||
/* Include all of the target-specific constraints. */
|
||||
|
||||
#undef CONST
|
||||
@ -2480,17 +2475,6 @@ static void process_op_defs(TCGContext *s)
|
||||
default:
|
||||
/* Typo in TCGTargetOpDef constraint. */
|
||||
g_assert_not_reached();
|
||||
#else
|
||||
default:
|
||||
{
|
||||
TCGType type = (def->flags & TCG_OPF_64BIT
|
||||
? TCG_TYPE_I64 : TCG_TYPE_I32);
|
||||
ct_str = target_parse_constraint(&def->args_ct[i],
|
||||
ct_str, type);
|
||||
/* Typo in TCGTargetOpDef constraint. */
|
||||
tcg_debug_assert(ct_str != NULL);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -207,6 +207,4 @@ static inline void tb_target_set_jmp_target(uintptr_t tc_ptr, uintptr_t jmp_rx,
|
||||
/* no need to flush icache explicitly */
|
||||
}
|
||||
|
||||
#define TCG_TARGET_CON_STR_H
|
||||
|
||||
#endif /* TCG_TARGET_H */
|
||||
|
Loading…
x
Reference in New Issue
Block a user