]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
target-i386: Update X86CPU to QOM realizefn
authorAndreas Färber <afaerber@suse.de>
Wed, 16 Jan 2013 02:41:47 +0000 (03:41 +0100)
committerAndreas Färber <afaerber@suse.de>
Sat, 16 Feb 2013 13:50:56 +0000 (14:50 +0100)
commit2b6f294cacd9f4e133a7813d22e1b4e87ac6b2a3
tree78bd9f703541dfe423f9fc4a96d7dc31eca89c49
parent149692667f8a46430127ca0555b38965f52177f5
target-i386: Update X86CPU to QOM realizefn

Adapt the signature of x86_cpu_realize(), hook up to
DeviceClass::realize and set realized = true in cpu_x86_init().

The QOM realizefn cannot depend on errp being non-NULL as in
cpu_x86_init(), so use a local Error to preserve error handling behavior
on APIC initialization errors.

Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
[AF: Invoke parent's realizefn]
Signed-off-by: Andreas Färber <afaerber@suse.de>
target-i386/cpu-qom.h
target-i386/cpu.c
target-i386/helper.c