[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 10/29] tcg: Define TCG_TYPE_PTR properly
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PULL 10/29] tcg: Define TCG_TYPE_PTR properly |
Date: |
Mon, 2 Sep 2013 09:28:55 -0700 |
Reviewed-by: Aurelien Jarno <address@hidden>
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 8a5e55b..7a6f2e5 100644
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -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
--
1.8.1.4
- [Qemu-devel] [PULL 00/29] Three tcg patch sets, Richard Henderson, 2013/09/02
- [Qemu-devel] [PULL 01/29] tcg: Add muluh and mulsh opcodes, Richard Henderson, 2013/09/02
- [Qemu-devel] [PULL 02/29] tcg-mips: Implement mulsh, muluh, Richard Henderson, 2013/09/02
- [Qemu-devel] [PULL 03/29] tcg-ppc64: Implement muluh, mulsh, Richard Henderson, 2013/09/02
- [Qemu-devel] [PULL 04/29] tcg: Constant fold div, rem, Richard Henderson, 2013/09/02
- [Qemu-devel] [PULL 05/29] qtest: Fix FMT_timeval vs time_t, Richard Henderson, 2013/09/02
- [Qemu-devel] [PULL 06/29] tcg: Change flush_icache_range arguments to uintptr_t, Richard Henderson, 2013/09/02
- [Qemu-devel] [PULL 07/29] tcg: Change tcg_qemu_tb_exec return to uintptr_t, Richard Henderson, 2013/09/02
- [Qemu-devel] [PULL 08/29] tcg: Fix next_tb type in cpu_exec, Richard Henderson, 2013/09/02
- [Qemu-devel] [PULL 09/29] tcg: Allow TCG_TARGET_REG_BITS to be specified independantly, Richard Henderson, 2013/09/02
- [Qemu-devel] [PULL 10/29] tcg: Define TCG_TYPE_PTR properly,
Richard Henderson <=
- [Qemu-devel] [PULL 11/29] tcg: Define TCG_ptr properly, Richard Henderson, 2013/09/02
- [Qemu-devel] [PULL 12/29] tcg: Change frame pointer offsets to intptr_t, Richard Henderson, 2013/09/02
- [Qemu-devel] [PULL 13/29] tcg: Change memory offsets to intptr_t, Richard Henderson, 2013/09/02
- [Qemu-devel] [PULL 14/29] tcg: Change relocation offsets to intptr_t, Richard Henderson, 2013/09/02
- [Qemu-devel] [PULL 15/29] tcg: Use uintptr_t in TCGHelperInfo, Richard Henderson, 2013/09/02
- [Qemu-devel] [PULL 16/29] tcg: Change tcg_gen_exit_tb argument to uintptr_t, Richard Henderson, 2013/09/02
- [Qemu-devel] [PULL 17/29] tcg: Change tcg_out_ld/st offset to intptr_t, Richard Henderson, 2013/09/02
- [Qemu-devel] [PULL 18/29] tcg: Use appropriate types in tcg_reg_alloc_call, Richard Henderson, 2013/09/02
- [Qemu-devel] [PULL 19/29] tcg: Fix jit debug for x32, Richard Henderson, 2013/09/02
- [Qemu-devel] [PULL 20/29] tcg-i386: Use intptr_t appropriately, Richard Henderson, 2013/09/02