mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-22 19:15:36 +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. Backports 8c07f3262ebb3bb01041a812354399dfa96a4c1f
This commit is contained in:
parent
af77ca2679
commit
570dc4a287
|
@ -160,6 +160,5 @@ void tb_target_set_jmp_target(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 */
|
||||
|
|
|
@ -148,6 +148,5 @@ void tb_target_set_jmp_target(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
|
||||
|
|
|
@ -272,6 +272,5 @@ static inline void tb_target_set_jmp_target(uintptr_t tc_ptr,
|
|||
#define TCG_TARGET_NEED_LDST_LABELS
|
||||
#endif
|
||||
#define TCG_TARGET_NEED_POOL_LABELS
|
||||
#define TCG_TARGET_CON_STR_H
|
||||
|
||||
#endif
|
||||
|
|
|
@ -218,6 +218,5 @@ void tb_target_set_jmp_target(uintptr_t, uintptr_t, uintptr_t);
|
|||
#ifdef CONFIG_SOFTMMU
|
||||
#define TCG_TARGET_NEED_LDST_LABELS
|
||||
#endif
|
||||
#define TCG_TARGET_CON_STR_H
|
||||
|
||||
#endif
|
||||
|
|
|
@ -163,6 +163,5 @@ static inline void tb_target_set_jmp_target(uintptr_t tc_ptr,
|
|||
#define TCG_TARGET_NEED_LDST_LABELS
|
||||
#endif
|
||||
#define TCG_TARGET_NEED_POOL_LABELS
|
||||
#define TCG_TARGET_CON_STR_H
|
||||
|
||||
#endif
|
||||
|
|
|
@ -184,6 +184,5 @@ static inline void flush_icache_range(uintptr_t start, uintptr_t stop)
|
|||
void tb_target_set_jmp_target(uintptr_t, uintptr_t, uintptr_t);
|
||||
|
||||
#define TCG_TARGET_NEED_POOL_LABELS
|
||||
#define TCG_TARGET_CON_STR_H
|
||||
|
||||
#endif
|
||||
|
|
|
@ -90,10 +90,6 @@ QEMU_PACK( typedef struct {
|
|||
}) DebugFrameHeader;
|
||||
|
||||
/* Forward declarations for functions declared and used in tcg-target.inc.c. */
|
||||
#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);
|
||||
|
@ -1813,7 +1809,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
|
||||
|
@ -1829,17 +1824,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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue