[PATCH v2 3/6] hw/arm/ax3000-soc: Add missing class_size to TypeInfo

Kuan-Jui Chiu <[email protected]>
Newsgroups org.nongnu.qemu-devel
Message-ID <[email protected]>
Set class_size so the class object is allocated at its real size.

Fixes: 33a71a68c6e1 ("hw/arm: Add Axiado SoC AX3000")
Signed-off-by: Kuan-Jui Chiu <[email protected]>
---
 hw/arm/ax3000-soc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/arm/ax3000-soc.c b/hw/arm/ax3000-soc.c
index 71e31c6fb4..b5088b17f5 100644
--- a/hw/arm/ax3000-soc.c
+++ b/hw/arm/ax3000-soc.c
@@ -235,6 +235,7 @@ static const TypeInfo axiado_soc_types[] = {
         .parent         = TYPE_SYS_BUS_DEVICE,
         .instance_size  = sizeof(Ax3000SoCState),
         .instance_init  = ax3000_init,
+        .class_size     = sizeof(Ax3000SoCClass),
         .class_init     = ax3000_class_init,
     }
 };
-- 
2.34.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.