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

2025-02-17 Thread Alistair Francis
On Fri, Feb 7, 2025 at 4:28 AM 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: Pa

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

2025-02-06 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