[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 01/60] tcg: Add tcg_constant_ptr
From: |
Richard Henderson |
Subject: |
[PATCH v3 01/60] tcg: Add tcg_constant_ptr |
Date: |
Sun, 17 Apr 2022 10:43:27 -0700 |
Similar to tcg_const_ptr, defer to tcg_constant_{i32,i64}.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
include/tcg/tcg.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h
index 73869fd9d0..cd6eaae410 100644
--- a/include/tcg/tcg.h
+++ b/include/tcg/tcg.h
@@ -1054,9 +1054,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);
--
2.25.1
- [PATCH v3 00/60] target/arm: Cleanups, new features, new cpus, Richard Henderson, 2022/04/17
- [PATCH v3 02/60] target/arm: Update ISAR fields for ARMv8.8, Richard Henderson, 2022/04/17
- [PATCH v3 03/60] target/arm: Update SCR_EL3 bits to ARMv8.8, Richard Henderson, 2022/04/17
- [PATCH v3 01/60] tcg: Add tcg_constant_ptr,
Richard Henderson <=
- [PATCH v3 04/60] target/arm: Update SCTLR bits to ARMv9.2, Richard Henderson, 2022/04/17
- [PATCH v3 06/60] target/arm: Change CPUArchState.aarch64 to bool, Richard Henderson, 2022/04/17
- Re:, Alex Bennée, 2022/04/19
- [PATCH v3 05/60] target/arm: Change DisasContext.aarch64 to bool, Richard Henderson, 2022/04/17
- [PATCH v3 18/60] target/arm: Use tcg_constant in translate-m-nocp.c, Richard Henderson, 2022/04/17