aboutsummaryrefslogtreecommitdiff
path: root/tcg
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2013-09-09 08:26:49 -0700
committerRichard Henderson <rth@twiddle.net>2014-04-28 11:06:34 -0700
commit71b926992e0e0a0da078873480c6fc1dd65af6fc (patch)
tree8fcb8b37e95f6a35e630bd0514b9c395d627aa00 /tcg
parente2da502c003b9a91b4aea7684959192bd07c1f1d (diff)
downloadqemu-71b926992e0e0a0da078873480c6fc1dd65af6fc.zip
qemu-71b926992e0e0a0da078873480c6fc1dd65af6fc.tar.gz
qemu-71b926992e0e0a0da078873480c6fc1dd65af6fc.tar.bz2
tcg: Fix missed pointer size != TCG_TARGET_REG_BITS changes
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg')
-rw-r--r--tcg/tcg-op.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcg/tcg-op.h b/tcg/tcg-op.h
index 8d4ff7d..6b8ee5d 100644
--- a/tcg/tcg-op.h
+++ b/tcg/tcg-op.h
@@ -2861,7 +2861,7 @@ static inline void tcg_gen_qemu_st64(TCGv_i64 arg, TCGv addr, int mem_index)
#define tcg_gen_muls2_tl tcg_gen_muls2_i32
#endif
-#if TCG_TARGET_REG_BITS == 32
+#if UINTPTR_MAX == UINT32_MAX
# define tcg_gen_ld_ptr(R, A, O) \
tcg_gen_ld_i32(TCGV_PTR_TO_NAT(R), (A), (O))
# define tcg_gen_discard_ptr(A) \
@@ -2883,4 +2883,4 @@ static inline void tcg_gen_qemu_st64(TCGv_i64 arg, TCGv addr, int mem_index)
tcg_gen_addi_i64(TCGV_PTR_TO_NAT(R), TCGV_PTR_TO_NAT(A), (B))
# define tcg_gen_ext_i32_ptr(R, A) \
tcg_gen_ext_i32_i64(TCGV_PTR_TO_NAT(R), (A))
-#endif /* TCG_TARGET_REG_BITS == 32 */
+#endif /* UINTPTR_MAX == UINT32_MAX */