Re: [PATCH] target/riscv/tcg: do not set defaults for non-generic

2023-12-29 Thread Vladimir Isaev
29.12.2023 12:15, Daniel Henrique Barboza wrote: > > On 12/29/23 05:02, Vladimir Isaev wrote: >> riscv_cpu_options[] are exported using qdev and some of them are defined >> with default values. This is unfortunate since >> riscv_cpu_add_user_properties() >> is called after CPU instance init and t

Re: [PATCH] target/riscv/tcg: do not set defaults for non-generic

2023-12-29 Thread Daniel Henrique Barboza
On 12/29/23 05:02, Vladimir Isaev wrote: riscv_cpu_options[] are exported using qdev and some of them are defined with default values. This is unfortunate since riscv_cpu_add_user_properties() is called after CPU instance init and there is no clear way to disable MMU/PMP for some CPUs. Can't

[PATCH] target/riscv/tcg: do not set defaults for non-generic

2023-12-29 Thread Vladimir Isaev
riscv_cpu_options[] are exported using qdev and some of them are defined with default values. This is unfortunate since riscv_cpu_add_user_properties() is called after CPU instance init and there is no clear way to disable MMU/PMP for some CPUs. Can't define them as NODEFAULT since we still need d