Re: [PATCH v2 08/10] target/riscv/tcg: add riscv_cpu_write_misa_bit()

2023-10-10 Thread Alistair Francis
On Sat, Oct 7, 2023 at 12:29 AM 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:

[PATCH v2 08/10] target/riscv/tcg: add riscv_cpu_write_misa_bit()

2023-10-06 Thread Daniel Henrique Barboza
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 --- target/riscv/tcg/tcg-cpu.c | 44