unicorn/qemu/hw/i386
Igor Mammedov 9c5153270f
i386: keep cpu_model field in MachineState uptodate
Considering that features are converted to global properties and
global properties are automatically applied to every new instance
of created CPU (at object_new() time), there is no point in
parsing cpu_model string every time a CPU created. So move
parsing outside CPU creation loop and do it only once.

Parsing also should be done before any CPU is created so that
features would affect the first CPU a well.

Backports commit 6aff24c6a61c6fec31e555c7748ba6085b7b2c06 from qemu
2018-03-20 12:40:35 -04:00
..
Makefile.objs cleanup 2017-01-23 10:06:49 +08:00
pc.c i386: keep cpu_model field in MachineState uptodate 2018-03-20 12:40:35 -04:00
pc_piix.c i386: keep cpu_model field in MachineState uptodate 2018-03-20 12:40:35 -04:00