Re: [PATCH for-8.1 v4 14/25] target/riscv: add RVG

2023-03-24 Thread liweiwei
On 2023/3/23 06:19, Daniel Henrique Barboza wrote: The 'G' bit in misa_ext is a virtual extension that enables a set of extensions (i, m, a, f, d, icsr and ifencei). We're already have code to handle it but no bit definition. Add it. Add RVG to set_misa() in rv64_thead_c906_cpu_init() and remo

[PATCH for-8.1 v4 14/25] target/riscv: add RVG

2023-03-22 Thread Daniel Henrique Barboza
The 'G' bit in misa_ext is a virtual extension that enables a set of extensions (i, m, a, f, d, icsr and ifencei). We're already have code to handle it but no bit definition. Add it. Add RVG to set_misa() in rv64_thead_c906_cpu_init() and remove the manual cpu->cfg.ext_g assignment while we're at