[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH v2 16/16] hw/intc/ibex_plic: set user_creatable
- To: qemu-devel@xxxxxxxxxx
- From: Damien Hedde <damien.hedde@xxxxxxxxxxxxx>
- Date: Wed, 22 Sep 2021 18:14:05 +0200
- Cc: Damien Hedde <damien.hedde@xxxxxxxxxxxxx>, Alistair Francis <Alistair.Francis@xxxxxxx>, Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>, Paolo Bonzini <pbonzini@xxxxxxxxxx>, Eduardo Habkost <ehabkost@xxxxxxxxxx>, Marcel Apfelbaum <marcel.apfelbaum@xxxxxxxxx>, Daniel P. Berrangé <berrange@xxxxxxxxxx>, "Michael S. Tsirkin" <mst@xxxxxxxxxx>, Igor Mammedov <imammedo@xxxxxxxxxx>, Ani Sinha <ani@xxxxxxxxxxx>, Gerd Hoffmann <kraxel@xxxxxxxxxx>, Eric Auger <eric.auger@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Anthony Perard <anthony.perard@xxxxxxxxxx>, Paul Durrant <paul@xxxxxxx>, Peter Xu <peterx@xxxxxxxxxx>, David Hildenbrand <david@xxxxxxxxxx>, "Dr. David Alan Gilbert" <dgilbert@xxxxxxxxxx>, Markus Armbruster <armbru@xxxxxxxxxx>, Eric Blake <eblake@xxxxxxxxxx>, qemu-riscv@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx, mark.burton@xxxxxxxxxxxxx, mirela.grujic@xxxxxxxxxxxxx, edgari@xxxxxxxxxx, Peter Maydell <peter.maydell@xxxxxxxxxx>
- Delivery-date: Wed, 22 Sep 2021 17:31:43 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
This patch allows to create the device using device_add
using -preconfig mode. This sysbus device still needs to
be allowed by a machine to be created after preconfig is done.
Signed-off-by: Damien Hedde <damien.hedde@xxxxxxxxxxxxx>
---
Depending on chosen condition for a device to be added, this commit
may change.
---
hw/intc/ibex_plic.c | 1 +
1 file changed, 1 insertion(+)
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;
--
2.33.0
|