Re: [PATCH v2 11/21] target/riscv: Use DisasExtend in shift operations

2021-08-18 Thread Bin Meng
On Wed, Aug 18, 2021 at 5:26 AM Richard Henderson wrote: > > These operations are greatly simplified by ctx->w, which allows > us to fold gen_shiftw into gen_shift. Split gen_shifti into > gen_shift_imm_{fn,tl} like we do for gen_arith_imm_{fn,tl}. > > Signed-off-by: Richard Henderson > --- > t

[PATCH v2 11/21] target/riscv: Use DisasExtend in shift operations

2021-08-17 Thread Richard Henderson
These operations are greatly simplified by ctx->w, which allows us to fold gen_shiftw into gen_shift. Split gen_shifti into gen_shift_imm_{fn,tl} like we do for gen_arith_imm_{fn,tl}. Signed-off-by: Richard Henderson --- target/riscv/translate.c| 110 +--- target