On Sun, May 10, 2026 at 11:53 PM Marc-André Lureau <[email protected]> wrote: > > Mechanical conversion of all local PropertyInfo definitions in > target/riscv/cpu.c > > Signed-off-by: Marc-André Lureau <[email protected]>
Reviewed-by: Alistair Francis <[email protected]> Alistair > --- > target/riscv/cpu.c | 32 ++++++++++++++++---------------- > 1 file changed, 16 insertions(+), 16 deletions(-) > > diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c > index 235764462cb..bd01884fb30 100644 > --- a/target/riscv/cpu.c > +++ b/target/riscv/cpu.c > @@ -1467,7 +1467,7 @@ static void prop_pmu_num_get(Object *obj, Visitor *v, > const char *name, > } > > static const PropertyInfo prop_pmu_num = { > - .type = "uint8", > + .qapi_type = &uint8_type_info, > .description = "pmu-num", > .get = prop_pmu_num_get, > .set = prop_pmu_num_set, > @@ -1509,7 +1509,7 @@ static void prop_pmu_mask_get(Object *obj, Visitor *v, > const char *name, > } > > static const PropertyInfo prop_pmu_mask = { > - .type = "uint32", > + .qapi_type = &uint32_type_info, > .description = "pmu-mask", > .get = prop_pmu_mask_get, > .set = prop_pmu_mask_set, > @@ -1541,7 +1541,7 @@ static void prop_mmu_get(Object *obj, Visitor *v, const > char *name, > } > > static const PropertyInfo prop_mmu = { > - .type = "bool", > + .qapi_type = &bool_type_info, > .description = "mmu", > .get = prop_mmu_get, > .set = prop_mmu_set, > @@ -1573,7 +1573,7 @@ static void prop_pmp_get(Object *obj, Visitor *v, const > char *name, > } > > static const PropertyInfo prop_pmp = { > - .type = "bool", > + .qapi_type = &bool_type_info, > .description = "pmp", > .get = prop_pmp_get, > .set = prop_pmp_set, > @@ -1613,7 +1613,7 @@ static void prop_num_pmp_regions_get(Object *obj, > Visitor *v, const char *name, > } > > static const PropertyInfo prop_num_pmp_regions = { > - .type = "uint8", > + .qapi_type = &uint8_type_info, > .description = "num-pmp-regions", > .get = prop_num_pmp_regions_get, > .set = prop_num_pmp_regions_set, > @@ -1651,7 +1651,7 @@ static void prop_pmp_granularity_get(Object *obj, > Visitor *v, const char *name, > } > > static const PropertyInfo prop_pmp_granularity = { > - .type = "uint32", > + .qapi_type = &uint32_type_info, > .description = "pmp-granularity", > .get = prop_pmp_granularity_get, > .set = prop_pmp_granularity_set, > @@ -1726,7 +1726,7 @@ static void prop_priv_spec_get(Object *obj, Visitor *v, > const char *name, > } > > static const PropertyInfo prop_priv_spec = { > - .type = "str", > + .qapi_type = &str_type_info, > .description = "priv_spec", > /* FIXME enum? */ > .get = prop_priv_spec_get, > @@ -1759,7 +1759,7 @@ static void prop_vext_spec_get(Object *obj, Visitor *v, > const char *name, > } > > static const PropertyInfo prop_vext_spec = { > - .type = "str", > + .qapi_type = &str_type_info, > .description = "vext_spec", > /* FIXME enum? */ > .get = prop_vext_spec_get, > @@ -1802,7 +1802,7 @@ static void prop_vlen_get(Object *obj, Visitor *v, > const char *name, > } > > static const PropertyInfo prop_vlen = { > - .type = "uint16", > + .qapi_type = &uint16_type_info, > .description = "vlen", > .get = prop_vlen_get, > .set = prop_vlen_set, > @@ -1843,7 +1843,7 @@ static void prop_elen_get(Object *obj, Visitor *v, > const char *name, > } > > static const PropertyInfo prop_elen = { > - .type = "uint16", > + .qapi_type = &uint16_type_info, > .description = "elen", > .get = prop_elen_get, > .set = prop_elen_set, > @@ -1879,7 +1879,7 @@ static void prop_cbom_blksize_get(Object *obj, Visitor > *v, const char *name, > } > > static const PropertyInfo prop_cbom_blksize = { > - .type = "uint16", > + .qapi_type = &uint16_type_info, > .description = "cbom_blocksize", > .get = prop_cbom_blksize_get, > .set = prop_cbom_blksize_set, > @@ -1915,7 +1915,7 @@ static void prop_cbop_blksize_get(Object *obj, Visitor > *v, const char *name, > } > > static const PropertyInfo prop_cbop_blksize = { > - .type = "uint16", > + .qapi_type = &uint16_type_info, > .description = "cbop_blocksize", > .get = prop_cbop_blksize_get, > .set = prop_cbop_blksize_set, > @@ -1951,7 +1951,7 @@ static void prop_cboz_blksize_get(Object *obj, Visitor > *v, const char *name, > } > > static const PropertyInfo prop_cboz_blksize = { > - .type = "uint16", > + .qapi_type = &uint16_type_info, > .description = "cboz_blocksize", > .get = prop_cboz_blksize_get, > .set = prop_cboz_blksize_set, > @@ -1987,7 +1987,7 @@ static void prop_mvendorid_get(Object *obj, Visitor *v, > const char *name, > } > > static const PropertyInfo prop_mvendorid = { > - .type = "uint32", > + .qapi_type = &uint32_type_info, > .description = "mvendorid", > .get = prop_mvendorid_get, > .set = prop_mvendorid_set, > @@ -2023,7 +2023,7 @@ static void prop_mimpid_get(Object *obj, Visitor *v, > const char *name, > } > > static const PropertyInfo prop_mimpid = { > - .type = "uint64", > + .qapi_type = &uint64_type_info, > .description = "mimpid", > .get = prop_mimpid_get, > .set = prop_mimpid_set, > @@ -2080,7 +2080,7 @@ static void prop_marchid_get(Object *obj, Visitor *v, > const char *name, > } > > static const PropertyInfo prop_marchid = { > - .type = "uint64", > + .qapi_type = &uint64_type_info, > .description = "marchid", > .get = prop_marchid_get, > .set = prop_marchid_set, > > -- > 2.54.0 > >
