[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] hw/ssi/ssi: Set abstract TYPE_SSI_SLAVE instance size
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH] hw/ssi/ssi: Set abstract TYPE_SSI_SLAVE instance size |
Date: |
Fri, 21 Aug 2020 19:46:04 +0200 |
Set the abstract TYPE_SSI_SLAVE instance size in case an
implementation forgot to set it.
Reported-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
See:
https://www.mail-archive.com/qemu-devel@nongnu.org/msg731954.html
---
hw/ssi/ssi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/ssi/ssi.c b/hw/ssi/ssi.c
index a35d7ebb266..b3e82470381 100644
--- a/hw/ssi/ssi.c
+++ b/hw/ssi/ssi.c
@@ -85,6 +85,7 @@ static void ssi_slave_class_init(ObjectClass *klass, void
*data)
static const TypeInfo ssi_slave_info = {
.name = TYPE_SSI_SLAVE,
.parent = TYPE_DEVICE,
+ .instance_size = sizeof(SSISlave),
.class_init = ssi_slave_class_init,
.class_size = sizeof(SSISlaveClass),
.abstract = true,
--
2.26.2
- [PATCH] hw/ssi/ssi: Set abstract TYPE_SSI_SLAVE instance size,
Philippe Mathieu-Daudé <=