]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
target-i386: Initialize APIC at CPU level
authorIgor Mammedov <imammedo@redhat.com>
Sat, 13 Oct 2012 20:35:39 +0000 (22:35 +0200)
committerAndreas Färber <afaerber@suse.de>
Tue, 30 Oct 2012 21:38:37 +0000 (22:38 +0100)
commitbdeec802170d5dc9f0f8a01235c3488dca3ff83b
tree44a23d266c458c2295cd4f85690163d422efaf03
parentff287bbdda016b37990be7ed52339750aaa8a5e4
target-i386: Initialize APIC at CPU level

(L)APIC is a part of cpu [1] so move APIC initialization inside of
x86_cpu object. Since cpu_model and override flags currently specify
whether APIC should be created or not, APIC creation&initialization is
moved into x86_cpu_apic_init() which is called from x86_cpu_realize().

[1] - all x86 cpus have integrated APIC if we overlook existence of i486,
and it's more convenient to model after majority of them.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/pc.c
target-i386/cpu.c