diff options
author | Igor Mammedov <imammedo@redhat.com> | 2016-05-27 13:50:48 +0200 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2016-07-20 12:02:19 -0300 |
commit | edd1211194cd71afd78daf148c46801937ec11f5 (patch) | |
tree | 24870c9fde1cec4b762c02650caad44048145e02 | |
parent | 4da7faaeb0c7dd3f7f233165d336c878f78fd1eb (diff) |
pc: cpu: Allow device_add to be used with x86 cpu
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-rw-r--r-- | target-i386/cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 5d0e085c88..3df5f5f195 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -3396,6 +3396,7 @@ static void x86_cpu_common_class_init(ObjectClass *oc, void *data) cc->cpu_exec_enter = x86_cpu_exec_enter; cc->cpu_exec_exit = x86_cpu_exec_exit; + dc->cannot_instantiate_with_device_add_yet = false; /* * Reason: x86_cpu_initfn() calls cpu_exec_init(), which saves the * object in cpus -> dangling pointer after final object_unref(). |