|
From: | Richard Henderson |
Subject: | Re: [PATCH 01/33] target/ppc: introduce do_ea_calc |
Date: | Fri, 22 Oct 2021 14:51:56 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
On 10/21/21 12:45 PM, matheus.ferst@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.henderson@linaro.org> r~
[Prev in Thread] | Current Thread | [Next in Thread] |