Re: [PATCH v5 8/9] target/riscv/cpu.c: remove cfg setup from riscv_cpu_init()

2023-03-29 Thread liweiwei
On 2023/3/29 01:35, Daniel Henrique Barboza wrote: We have 4 config settings being done in riscv_cpu_init(): ext_ifencei, ext_icsr, mmu and pmp. This is also the constructor of the "riscv-cpu" device, which happens to be the parent device of every RISC-V cpu. The result is that these 4 configs

[PATCH v5 8/9] target/riscv/cpu.c: remove cfg setup from riscv_cpu_init()

2023-03-28 Thread Daniel Henrique Barboza
We have 4 config settings being done in riscv_cpu_init(): ext_ifencei, ext_icsr, mmu and pmp. This is also the constructor of the "riscv-cpu" device, which happens to be the parent device of every RISC-V cpu. The result is that these 4 configs are being set every time, and every other CPU should a