target/m68k: Use tcg_constant_i32 in gen_ea_mode

Return a constant for an immediate input.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
Richard Henderson 2023-02-25 14:12:24 -10:00
parent 56649fd949
commit 999b7c2659

View File

@ -916,7 +916,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;
}