]> git.proxmox.com Git - mirror_qemu.git/commit - target/ppc/translate_init.c.inc
ppc: spapr: use generic cpu_model parsing
authorIgor Mammedov <imammedo@redhat.com>
Mon, 9 Oct 2017 19:51:05 +0000 (21:51 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 16 Oct 2017 23:34:01 +0000 (10:34 +1100)
commit2e9c10eba0206e7b9a5ed03e51269759caac27f0
tree76849093eb4c966c7e48e0f3bc888fbcf3608c98
parentb918f885ae1ca354d2f505a7c4a4b91c9de50f18
ppc: spapr: use generic cpu_model parsing

use generic cpu_model parsing introduced by
 (6063d4c0f vl.c: convert cpu_model to cpu type and set of global properties before machine_init())

it allows to:
  * replace sPAPRMachineClass::tcg_default_cpu with
    MachineClass::default_cpu_type
  * drop cpu_parse_cpu_model() from hw/ppc/spapr.c and reuse
    one in vl.c
  * simplify spapr_get_cpu_core_type() by removing
    not needed anymore recurrsion since alias look up
    happens earlier at vl.c and spapr_get_cpu_core_type()
    works only with resulted from that cpu type.
  * spapr no more needs to parse/depend on being phased out
    MachineState::cpu_model, all tha parsing done by generic
    code and target specific callback.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
[dwg: Correct minor compile error]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c
hw/ppc/spapr_cpu_core.c
include/hw/ppc/spapr.h
include/hw/ppc/spapr_cpu_core.h
target/ppc/cpu.h
target/ppc/kvm.c
target/ppc/translate_init.c