[PATCH 25/70] target/m68k: Use tcg_constant_i32 in gen_ea_mode

Richard Henderson posted 70 patches 2 years, 2 months ago
There is a newer version of this series
[PATCH 25/70] target/m68k: Use tcg_constant_i32 in gen_ea_mode
Posted by Richard Henderson 2 years, 2 months ago
Return a constant for an immediate input.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 target/m68k/translate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/m68k/translate.c b/target/m68k/translate.c
index 7a87811427..7435e51acc 100644
--- a/target/m68k/translate.c
+++ b/target/m68k/translate.c
@@ -924,7 +924,7 @@ static TCGv gen_ea_mode(CPUM68KState *env, DisasContext *s, int mode, int reg0,
             default:
                 g_assert_not_reached();
             }
-            return tcg_const_i32(offset);
+            return tcg_constant_i32(offset);
         default:
             return NULL_QREG;
         }
-- 
2.34.1
Re: [PATCH 25/70] target/m68k: Use tcg_constant_i32 in gen_ea_mode
Posted by Philippe Mathieu-Daudé 2 years, 2 months ago
On 27/2/23 06:41, Richard Henderson wrote:
> Return a constant for an immediate input.
> 
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>   target/m68k/translate.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>