Re: [PATCH v9 11/11] target/riscv: rework write_misa()

2023-05-17 Thread Alistair Francis
On Wed, May 17, 2023 at 11:58 PM Daniel Henrique Barboza wrote: > > write_misa() must use as much common logic as possible. We want to open > code just the bits that are exclusive to the CSR write operation and TCG > internals. > > Our validation is done with riscv_cpu_validate_set_extensions(), b

[PATCH v9 11/11] target/riscv: rework write_misa()

2023-05-17 Thread Daniel Henrique Barboza
write_misa() must use as much common logic as possible. We want to open code just the bits that are exclusive to the CSR write operation and TCG internals. Our validation is done with riscv_cpu_validate_set_extensions(), but we need a small tweak first. When enabling RVG we're doing: env-