mirror of https://github.com/xqemu/xqemu.git
tcg: Define TCG_TYPE_PTR properly
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
78cd7b835e
commit
d289837eef
|
@ -178,9 +178,12 @@ typedef enum TCGType {
|
||||||
TCG_TYPE_REG = TCG_TYPE_I64,
|
TCG_TYPE_REG = TCG_TYPE_I64,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* An alias for the size of the native pointer. We don't currently
|
/* An alias for the size of the native pointer. */
|
||||||
support any hosts with 64-bit registers and 32-bit pointers. */
|
#if UINTPTR_MAX == UINT32_MAX
|
||||||
TCG_TYPE_PTR = TCG_TYPE_REG,
|
TCG_TYPE_PTR = TCG_TYPE_I32,
|
||||||
|
#else
|
||||||
|
TCG_TYPE_PTR = TCG_TYPE_I64,
|
||||||
|
#endif
|
||||||
|
|
||||||
/* An alias for the size of the target "long", aka register. */
|
/* An alias for the size of the target "long", aka register. */
|
||||||
#if TARGET_LONG_BITS == 64
|
#if TARGET_LONG_BITS == 64
|
||||||
|
|
Loading…
Reference in New Issue