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

TYPE_X86_CPU's property "apic-id" is defined with DEFINE_PROP_UINT32().

Signed-off-by: Marc-AndrĂ© Lureau <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Markus Armbruster <[email protected]>
---
 hw/i386/pc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index f670ecb..f6d5717 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -1098,7 +1098,7 @@ static void pc_new_cpu(const char *typename, int64_t 
apic_id, Error **errp)
 
     cpu = object_new(typename);
 
-    object_property_set_int(cpu, apic_id, "apic-id", &local_err);
+    object_property_set_uint(cpu, apic_id, "apic-id", &local_err);
     object_property_set_bool(cpu, true, "realized", &local_err);
 
     object_unref(cpu);
-- 
2.7.5


Reply via email to