cpu: do not use object_delete

CPUs are never added to the composition tree, so delete is achieved
simply by removing the last references to them.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Paolo Bonzini 2013-01-25 14:12:38 +01:00 committed by Anthony Liguori
parent b09995aef1
commit 5c099537a6
4 changed files with 5 additions and 5 deletions

View file

@ -119,7 +119,7 @@ SPARCCPU *cpu_sparc_init(const char *cpu_model)
}
if (cpu_sparc_register(env, cpu_model) < 0) {
object_delete(OBJECT(cpu));
object_unref(OBJECT(cpu));
return NULL;
}
qemu_init_vcpu(env);