OSDN Git Service

target-i386: Move TCG initialization to realize time
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 13 Feb 2015 00:57:44 +0000 (22:57 -0200)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 23 May 2016 22:47:37 +0000 (19:47 -0300)
commit57f2453ab48a771b30aeced01b329ee85853bb7b
tree7cd0ddf9d7f02c06332bbdbee620f77a231d9edb
parent4fe15cdedf8728e58b8e475f8b1a26fb16aa9caa
target-i386: Move TCG initialization to realize time

QOM instance_init functions are not supposed to have any side-effects,
as new objects may be created at any moment for querying property
information (see qmp_device_list_properties()).

Move TCG initialization to realize time so it won't be called when just
doing object_new() on a X86CPU subclass.

Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target-i386/cpu.c