]> Git Repo - qemu.git/commit
arm: virt: Parse cpu_model only once
authorIgor Mammedov <[email protected]>
Thu, 9 Jun 2016 17:11:02 +0000 (19:11 +0200)
committerEduardo Habkost <[email protected]>
Thu, 7 Jul 2016 18:25:05 +0000 (15:25 -0300)
commit09f71b054a95161950a03fafc9023637929bd404
treedea984736d97ae43279b0d5f6020b184585171f7
parent62a48a2a5798425997152dea3fc48708f9116c04
arm: virt: Parse cpu_model only once

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.

Signed-off-by: Igor Mammedov <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Eduardo Habkost <[email protected]>
hw/arm/virt.c
qom/cpu.c
This page took 0.025953 seconds and 4 git commands to generate.