unicorn/qemu/hw
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
..
arm arm: virt: Parse cpu_model only once 2018-03-20 12:07:03 -04:00
core machine: use class base init generated name 2018-03-11 16:54:40 -04:00
i386 i386: keep cpu_model field in MachineState uptodate 2018-03-20 12:40:35 -04:00
intc qemu-common: push cpu.h inclusion out of qemu-common.h 2018-02-24 01:50:56 -05:00
m68k cpu: Generify CPU init functions 2018-03-20 08:21:51 -04:00
mips Use DEFINE_MACHINE() to register all machines 2018-03-11 15:12:46 -04:00
sparc cpu: Generify CPU init functions 2018-03-20 08:21:51 -04:00
sparc64 cpu: Generify CPU init functions 2018-03-20 08:21:51 -04:00
Makefile.objs import 2015-08-21 15:04:50 +08:00