On 10/21/21 12:45 PM, matheus.fe...@eldorado.org.br wrote:
+static inline void do_ea_calc(DisasContext *ctx, int ra, TCGv displ, TCGv ea) +{ + if (ra) { + tcg_gen_add_tl(ea, cpu_gpr[ra], displ); + } else { + tcg_gen_mov_tl(ea, displ); + } + if (NARROW_MODE(ctx)) { + tcg_gen_ext32u_tl(ea, ea); + } +}
Drop the inline. Allocate ea locally and return it? All uses do the allocate immediately beforehand... Otherwise, Reviewed-by: Richard Henderson <richard.hender...@linaro.org> r~