On Wed, Oct 25, 2023 at 10:49:57AM -0300, Daniel Henrique Barboza wrote: > We have two instances of the setting/clearing a MISA bit from > env->misa_ext and env->misa_ext_mask pattern. And the next patch will > end up adding one more. > > Create a helper to avoid code repetition. > > Signed-off-by: Daniel Henrique Barboza <dbarb...@ventanamicro.com> > Reviewed-by: Alistair Francis <alistair.fran...@wdc.com> > Reviewed-by: LIU Zhiwei <zhiwei_...@linux.alibaba.com> > --- > target/riscv/tcg/tcg-cpu.c | 44 ++++++++++++++++++++------------------ > 1 file changed, 23 insertions(+), 21 deletions(-) >
Reviewed-by: Andrew Jones <ajo...@ventanamicro.com>