Re: [PATCH 04/22] target/riscv: store RISCVCPUDef struct directly in the class

2025-03-05 Thread Alistair Francis
On Fri, Feb 28, 2025 at 8:31 PM Paolo Bonzini wrote: > > Prepare for adding more fields to RISCVCPUDef and reading them in > riscv_cpu_init: instead of storing the misa_mxl_max field in > RISCVCPUClass, ensure that there's always a valid RISCVCPUDef struct > and go through it. > > Signed-off-by: P

[PATCH 04/22] target/riscv: store RISCVCPUDef struct directly in the class

2025-02-28 Thread Paolo Bonzini
Prepare for adding more fields to RISCVCPUDef and reading them in riscv_cpu_init: instead of storing the misa_mxl_max field in RISCVCPUClass, ensure that there's always a valid RISCVCPUDef struct and go through it. Signed-off-by: Paolo Bonzini --- target/riscv/cpu.h | 2 +- hw/riscv/boo