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 the extra () and unnecessary cast.
.class_data = &(const RISCVCPUDef) {
...
},
With that,
Reviewed-by: Richard Henderson <[email protected]>
r~
