Re:[PATCH 02/17] target/riscv: Introduce gpr_src, gpr_dst

2021-07-19 Thread LIU Zhiwei
Hi Richard, Notice gen_arith is also used by trans_div.  We will modify the source register for div instruction after this patch set. Thanks, Zhiwei

Re: [PATCH 02/17] target/riscv: Introduce gpr_src, gpr_dst

2021-07-08 Thread Alistair Francis
On Fri, Jul 9, 2021 at 2:42 PM Richard Henderson wrote: > > New helpers that do not force tcg globals into temps, > returning a constant 0 for $zero as source and a new > temp for $zero as destination. > > Use them in gen_arith_imm_{fn,tl}, gen_arith, gen_unary. > These are simplest because no

[PATCH 02/17] target/riscv: Introduce gpr_src, gpr_dst

2021-07-08 Thread Richard Henderson
New helpers that do not force tcg globals into temps, returning a constant 0 for $zero as source and a new temp for $zero as destination. Use them in gen_arith_imm_{fn,tl}, gen_arith, gen_unary. These are simplest because no further temps required. Signed-off-by: Richard Henderson ---