summaryrefslogtreecommitdiffstats
path: root/hw/i386
diff options
context:
space:
mode:
authorMarc-André Lureau2017-06-07 18:36:23 +0200
committerMarkus Armbruster2017-06-20 14:31:33 +0200
commitc7b4efb4a0aefc3c0de7500332a4c34f2d84d9b3 (patch)
tree5b79e47987733da9e1701d4f14ed0a7ad21bba5b /hw/i386
parentpc: use get_uint() for "iobase" property (diff)
downloadqemu-c7b4efb4a0aefc3c0de7500332a4c34f2d84d9b3.tar.gz
qemu-c7b4efb4a0aefc3c0de7500332a4c34f2d84d9b3.tar.xz
qemu-c7b4efb4a0aefc3c0de7500332a4c34f2d84d9b3.zip
pc: use get_uint() for "apic-id" property
TYPE_X86_CPU's property "apic-id" is defined with DEFINE_PROP_UINT32(). Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20170607163635.17635-32-marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'hw/i386')
-rw-r--r--hw/i386/pc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index f670ecb7f2..f6d5717f8b 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);