From: Richard Henderson Date: Wed, 13 Apr 2022 16:50:17 +0000 (-0700) Subject: tcg: Add tcg_constant_ptr X-Git-Tag: v7.1.0-rc0~143^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a61532faa5a4d5e021e35b6a4a1e180c72d4a22f;p=thirdparty%2Fqemu.git tcg: Add tcg_constant_ptr Similar to tcg_const_ptr, defer to tcg_constant_{i32,i64}. Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h index 27de13fae03..61505d20ed8 100644 --- a/include/tcg/tcg.h +++ b/include/tcg/tcg.h @@ -1056,9 +1056,11 @@ TCGv_vec tcg_constant_vec_matching(TCGv_vec match, unsigned vece, int64_t val); #if UINTPTR_MAX == UINT32_MAX # define tcg_const_ptr(x) ((TCGv_ptr)tcg_const_i32((intptr_t)(x))) # define tcg_const_local_ptr(x) ((TCGv_ptr)tcg_const_local_i32((intptr_t)(x))) +# define tcg_constant_ptr(x) ((TCGv_ptr)tcg_constant_i32((intptr_t)(x))) #else # define tcg_const_ptr(x) ((TCGv_ptr)tcg_const_i64((intptr_t)(x))) # define tcg_const_local_ptr(x) ((TCGv_ptr)tcg_const_local_i64((intptr_t)(x))) +# define tcg_constant_ptr(x) ((TCGv_ptr)tcg_constant_i64((intptr_t)(x))) #endif TCGLabel *gen_new_label(void);