From: Marc-André Lureau <[email protected]>

Pass appropriate QAPITypeInfo to object_class_property_add().

Signed-off-by: Marc-André Lureau <[email protected]>
Signed-off-by: Markus Armbruster <[email protected]>
---
 target/i386/cpu.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index 9ee96cbe39..eab0d5a4d4 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -11033,7 +11033,8 @@ static void x86_cpu_common_class_init(ObjectClass *oc, 
const void *data)
      * QMP command: they list the features that would have prevented the
      * CPU from running if the "enforce" flag was set.
      */
-    object_class_property_add(oc, "unavailable-features", "strList", NULL,
+    object_class_property_add(oc, "unavailable-features", "strList",
+                              &strList_type_info,
                               x86_cpu_get_unavailable_features,
                               NULL, NULL, NULL);
 
-- 
2.55.0


Reply via email to