Re: [RFC v4 08/16] target/riscv: add gen_shifti() and gen_shiftiw() helper functions

2021-01-21 Thread Richard Henderson
On 1/12/21 9:13 PM, frank.ch...@sifive.com wrote: > From: Frank Chang > > Add gen_shifti() and gen_shiftiw() helper functions to reuse the same > interfaces for immediate shift instructions. > > Signed-off-by: Frank Chang > --- > target/riscv/insn_trans/trans_rvi.c.inc | 54 ++-

[RFC v4 08/16] target/riscv: add gen_shifti() and gen_shiftiw() helper functions

2021-01-12 Thread frank . chang
From: Frank Chang Add gen_shifti() and gen_shiftiw() helper functions to reuse the same interfaces for immediate shift instructions. Signed-off-by: Frank Chang --- target/riscv/insn_trans/trans_rvi.c.inc | 54 ++--- target/riscv/translate.c| 43 +