pc: Set APIC ID based on socket/core/thread ids if it's not been set yet
commite8f7b83e886361e4b16d46936f72d46bcf8fcb5b
authorIgor Mammedov <imammedo@redhat.com>
Thu, 14 Jul 2016 16:54:30 +0000 (14 18:54 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Wed, 20 Jul 2016 15:02:18 +0000 (20 12:02 -0300)
treef3222a88b6f89133e96f900fe4a625b2c7104fff
parent67e55caa6dcb91c80428cee6fe463f8dd8a755ab
pc: Set APIC ID based on socket/core/thread ids if it's not been set yet

CPU added with device_add help won't have APIC ID set,
so set it according to socket/core/thread ids provided
with device_add command.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/i386/pc.c