Re: [PATCH for-8.1 v4 23/25] target/riscv: rework write_misa()

2023-03-24 Thread liweiwei
On 2023/3/23 06:20, 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. Rewrite write_misa() to work as follows: - mask the write using misa_ext_mask to avoid

[PATCH for-8.1 v4 23/25] target/riscv: rework write_misa()

2023-03-22 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. Rewrite write_misa() to work as follows: - mask the write using misa_ext_mask to avoid enabling unsupported extensions; - suppress RVC if