mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-11 02:35:29 +00:00
target-i386: Fix apic object leak when CPU is deleted
Backports commit 67e55caa6dcb91c80428cee6fe463f8dd8a755ab from qemu
This commit is contained in:
parent
e15fb246ab
commit
298b0e6529
|
@ -2909,6 +2909,7 @@ static void x86_cpu_apic_create(X86CPU *cpu, Error **errp)
|
|||
|
||||
object_property_add_child(OBJECT(cpu), "lapic",
|
||||
OBJECT(cpu->apic_state), &error_abort);
|
||||
object_unref(OBJECT(cpu->apic_state));
|
||||
//qdev_prop_set_uint8(cpu->apic_state, "id", cpu->apic_id);
|
||||
/* TODO: convert to link<> */
|
||||
apic = APIC_COMMON(cpu->apic_state);
|
||||
|
|
Loading…
Reference in a new issue