Message ID | 20210811093838.18719-3-damien.hedde@greensocs.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Set user creatable for flag ibex uart and plic | expand |
diff --git a/hw/intc/ibex_plic.c b/hw/intc/ibex_plic.c index edf76e4f61..8abd5ee613 100644 --- a/hw/intc/ibex_plic.c +++ b/hw/intc/ibex_plic.c @@ -291,6 +291,7 @@ static void ibex_plic_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); + dc->user_creatable = true; dc->reset = ibex_plic_reset; device_class_set_props(dc, ibex_plic_properties); dc->realize = ibex_plic_realize;
The ibex_plic meets the criteria to be user_creatable: all parameters are set from properties. Note that this patch, alone, does not allow to create an instance with -device cli option or device_add qmp command. Since it is a sysbus device, additional authorization must be done by the machine. Signed-off-by: Damien Hedde <damien.hedde@greensocs.com> --- hw/intc/ibex_plic.c | 1 + 1 file changed, 1 insertion(+)