Re: [PATCH 07/20] target/riscv/cpu.c: add .instance_post_init()

2023-09-01 Thread Daniel Henrique Barboza
On 8/31/23 08:00, Andrew Jones wrote: On Fri, Aug 25, 2023 at 10:08:40AM -0300, Daniel Henrique Barboza wrote: All generic CPUs call riscv_cpu_add_user_properties(). The 'max' CPU calls riscv_init_max_cpu_extensions(). Both can be moved to a common instance_post_init() callback, implemented i

Re: [PATCH 07/20] target/riscv/cpu.c: add .instance_post_init()

2023-08-31 Thread Andrew Jones
On Fri, Aug 25, 2023 at 10:08:40AM -0300, Daniel Henrique Barboza wrote: > All generic CPUs call riscv_cpu_add_user_properties(). The 'max' CPU > calls riscv_init_max_cpu_extensions(). Both can be moved to a common > instance_post_init() callback, implemented in riscv_cpu_post_init(), > called by a

[PATCH 07/20] target/riscv/cpu.c: add .instance_post_init()

2023-08-25 Thread Daniel Henrique Barboza
All generic CPUs call riscv_cpu_add_user_properties(). The 'max' CPU calls riscv_init_max_cpu_extensions(). Both can be moved to a common instance_post_init() callback, implemented in riscv_cpu_post_init(), called by all CPUs. The call order then becomes: riscv_cpu_init() -> cpu_init() of each CPU