[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 11/29] tcg: Define TCG_ptr properly
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PULL 11/29] tcg: Define TCG_ptr properly |
Date: |
Mon, 2 Sep 2013 09:28:56 -0700 |
Reviewed-by: Aurelien Jarno <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
---
tcg/tcg.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tcg/tcg.h b/tcg/tcg.h
index 7a6f2e5..bb215a7 100644
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -645,11 +645,11 @@ do {\
void tcg_add_target_add_op_defs(const TCGTargetOpDef *tdefs);
-#if TCG_TARGET_REG_BITS == 32
+#if UINTPTR_MAX == UINT32_MAX
#define TCGV_NAT_TO_PTR(n) MAKE_TCGV_PTR(GET_TCGV_I32(n))
#define TCGV_PTR_TO_NAT(n) MAKE_TCGV_I32(GET_TCGV_PTR(n))
-#define tcg_const_ptr(V) TCGV_NAT_TO_PTR(tcg_const_i32((tcg_target_long)(V)))
+#define tcg_const_ptr(V) TCGV_NAT_TO_PTR(tcg_const_i32((intptr_t)(V)))
#define tcg_global_reg_new_ptr(R, N) \
TCGV_NAT_TO_PTR(tcg_global_reg_new_i32((R), (N)))
#define tcg_global_mem_new_ptr(R, O, N) \
@@ -660,7 +660,7 @@ void tcg_add_target_add_op_defs(const TCGTargetOpDef
*tdefs);
#define TCGV_NAT_TO_PTR(n) MAKE_TCGV_PTR(GET_TCGV_I64(n))
#define TCGV_PTR_TO_NAT(n) MAKE_TCGV_I64(GET_TCGV_PTR(n))
-#define tcg_const_ptr(V) TCGV_NAT_TO_PTR(tcg_const_i64((tcg_target_long)(V)))
+#define tcg_const_ptr(V) TCGV_NAT_TO_PTR(tcg_const_i64((intptr_t)(V)))
#define tcg_global_reg_new_ptr(R, N) \
TCGV_NAT_TO_PTR(tcg_global_reg_new_i64((R), (N)))
#define tcg_global_mem_new_ptr(R, O, N) \
--
1.8.1.4
- [Qemu-devel] [PULL 01/29] tcg: Add muluh and mulsh opcodes, (continued)
- [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, 2013/09/02
- [Qemu-devel] [PULL 11/29] tcg: Define TCG_ptr properly,
Richard Henderson <=
- [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
- [Qemu-devel] [PULL 21/29] tcg-i386: Adjust tcg_out_tlb_load for x32, Richard Henderson, 2013/09/02