• I
    pc: Parse CPU features only once · 6aff24c6
    Igor Mammedov 提交于
    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: NIgor Mammedov <imammedo@redhat.com>
    Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
    6aff24c6
cpu.c 10.6 KB