[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/4] slavio_misc: Correct instance_size
From: |
Eduardo Habkost |
Subject: |
[PATCH 3/4] slavio_misc: Correct instance_size |
Date: |
Wed, 26 Aug 2020 13:10:04 -0400 |
TYPE_APC was using the wrong struct for instance_size. Luckily
this never caused any problems because MiscState is larger than
APCState.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Cc: qemu-devel@nongnu.org
---
hw/misc/slavio_misc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/misc/slavio_misc.c b/hw/misc/slavio_misc.c
index 279b38dfc7..6d10cd078f 100644
--- a/hw/misc/slavio_misc.c
+++ b/hw/misc/slavio_misc.c
@@ -499,7 +499,7 @@ static const TypeInfo slavio_misc_info = {
static const TypeInfo apc_info = {
.name = TYPE_APC,
.parent = TYPE_SYS_BUS_DEVICE,
- .instance_size = sizeof(MiscState),
+ .instance_size = sizeof(APCState),
.instance_init = apc_init,
};
--
2.26.2