Re: [PATCH 15/27] target/riscv: convert profile CPU models to RISCVCPUDef

2025-04-23 Thread Alistair Francis
On Sun, Apr 6, 2025 at 5:03 PM Paolo Bonzini wrote: > > Profile CPUs reuse the instance_init function for bare CPUs; make them > proper subclasses instead. Enabling a profile is now done based on the > RISCVCPUDef struct: even though there is room for only one in RISCVCPUDef, > subclasses check t

[PATCH 15/27] target/riscv: convert profile CPU models to RISCVCPUDef

2025-04-06 Thread Paolo Bonzini
Profile CPUs reuse the instance_init function for bare CPUs; make them proper subclasses instead. Enabling a profile is now done based on the RISCVCPUDef struct: even though there is room for only one in RISCVCPUDef, subclasses check that the parent class's profile is enabled through the parent pr