mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
tcg: Move TCG_TYPE_TL from tcg.h to tcg-op.h
Removes the only use of TARGET_LONG_BITS from tcg.h, which is to be target independent. Move the symbol to a define in tcg-op.h, which will continue to be target dependent. Rather than complicate matters for the use in tb_gen_code(), expand the definition there. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
40bca78d76
commit
ff0c61bf35
3 changed files with 9 additions and 8 deletions
|
@ -722,6 +722,14 @@ static inline void tcg_gen_concat32_i64(TCGv_i64 ret, TCGv_i64 lo, TCGv_i64 hi)
|
|||
#error must include QEMU headers
|
||||
#endif
|
||||
|
||||
#if TARGET_LONG_BITS == 32
|
||||
# define TCG_TYPE_TL TCG_TYPE_I32
|
||||
#elif TARGET_LONG_BITS == 64
|
||||
# define TCG_TYPE_TL TCG_TYPE_I64
|
||||
#else
|
||||
# error
|
||||
#endif
|
||||
|
||||
#if TARGET_INSN_START_WORDS == 1
|
||||
static inline void tcg_gen_insn_start(target_ulong pc)
|
||||
{
|
||||
|
|
|
@ -292,13 +292,6 @@ typedef enum TCGType {
|
|||
#else
|
||||
TCG_TYPE_PTR = TCG_TYPE_I64,
|
||||
#endif
|
||||
|
||||
/* An alias for the size of the target "long", aka register. */
|
||||
#if TARGET_LONG_BITS == 64
|
||||
TCG_TYPE_TL = TCG_TYPE_I64,
|
||||
#else
|
||||
TCG_TYPE_TL = TCG_TYPE_I32,
|
||||
#endif
|
||||
} TCGType;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue