qom: cpus: split cpu_generic_init() on feature parsing and cpu creation parts
commit3c72234c98004a01d79a24f78b07053cfebd0f22
authorIgor Mammedov <imammedo@redhat.com>
Wed, 13 Sep 2017 16:04:53 +0000 (13 18:04 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 19 Sep 2017 12:09:32 +0000 (19 09:09 -0300)
tree54232f14c31d8d8f83f9bb384ecf337ce1a19068
parent11ae6ed8affdd131e735bac39b21e7d3cde66f7b
qom: cpus: split cpu_generic_init() on feature parsing and cpu creation parts

it would allow to reuse feature parsing part in various machines
that have CPU features instead of re-implementing the same feature
parsing each time.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <1505318697-77161-2-git-send-email-imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
include/qom/cpu.h
qom/cpu.c