Re: [PATCH 03/22] target/riscv: introduce RISCVCPUDef
On 2/28/25 02:27, Paolo Bonzini wrote: -.class_data = GUINT_TO_POINTER(misa_mxl_max)\ +.class_data = (void*) &((const RISCVCPUDef) { \ + .misa_mxl_max = (misa_mxl_max_), \ +}), \ Drop
[PATCH 03/22] target/riscv: introduce RISCVCPUDef
Start putting all the CPU definitions in a struct. Later this will replace instance_init functions with declarative code, for now just remove the ugly cast of class_data. Signed-off-by: Paolo Bonzini --- target/riscv/cpu.h | 4 target/riscv/cpu.c | 27 ++- 2 files