diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-04-13 09:50:17 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2022-04-20 12:12:47 -0700 |
commit | a61532faa5a4d5e021e35b6a4a1e180c72d4a22f (patch) | |
tree | 06b59b3b718cb38a9695dafee68bb4f2cb20eeda /include/tcg | |
parent | 5b6af141dac7a6a749030c9de33382374671b2ad (diff) | |
download | qemu-a61532faa5a4d5e021e35b6a4a1e180c72d4a22f.zip qemu-a61532faa5a4d5e021e35b6a4a1e180c72d4a22f.tar.gz qemu-a61532faa5a4d5e021e35b6a4a1e180c72d4a22f.tar.bz2 |
tcg: Add tcg_constant_ptr
Similar to tcg_const_ptr, defer to tcg_constant_{i32,i64}.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/tcg')
-rw-r--r-- | include/tcg/tcg.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h index 27de13f..61505d2 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); |