qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 05/18] tcg: Define TCG_TYPE_PTR properly


From: Richard Henderson
Subject: [Qemu-devel] [PATCH 05/18] tcg: Define TCG_TYPE_PTR properly
Date: Thu, 22 Aug 2013 09:58:36 -0700

Signed-off-by: Richard Henderson <address@hidden>
---
 tcg/tcg.h | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/tcg/tcg.h b/tcg/tcg.h
index bfe420a..b71dcf4 100644
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -173,9 +173,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
-- 
1.8.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]