mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
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 <imammedo@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
62a48a2a57
commit
09f71b054a
2 changed files with 21 additions and 22 deletions
|
@ -296,7 +296,6 @@ static void cpu_common_parse_features(const char *typename, char *features,
|
|||
* call it only once, so we can remove this check (or change it
|
||||
* to assert(!cpu_globals_initialized).
|
||||
* Current callers of ->parse_features() are:
|
||||
* - machvirt_init()
|
||||
* - cpu_generic_init()
|
||||
* - cpu_x86_create()
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue