diff options
author | Richard Henderson <rth@twiddle.net> | 2013-08-20 14:48:46 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2013-09-02 09:08:29 -0700 |
commit | d289837eef3550ac156082d812231ec5dfe79501 (patch) | |
tree | e6daa7e9e2601ac4b5448c79bbd05a304dfd62dd /tcg/tcg.h | |
parent | 78cd7b835e13bee4416782b6ed41e9bef76e3cfc (diff) |
tcg: Define TCG_TYPE_PTR properly
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg/tcg.h')
-rw-r--r-- | tcg/tcg.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -178,9 +178,12 @@ typedef enum TCGType { TCG_TYPE_REG = TCG_TYPE_I64, #endif - /* An alias for the size of the native pointer. We don't currently - support any hosts with 64-bit registers and 32-bit pointers. */ - TCG_TYPE_PTR = TCG_TYPE_REG, + /* An alias for the size of the native pointer. */ +#if UINTPTR_MAX == UINT32_MAX + 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. */ #if TARGET_LONG_BITS == 64 |