]> git.proxmox.com Git - mirror_qemu.git/commit - target/ppc/translate_init.c.inc
ppc: use macros to make cpu type name from string literal
authorIgor Mammedov <imammedo@redhat.com>
Wed, 30 Aug 2017 13:24:29 +0000 (15:24 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 7 Sep 2017 23:30:55 +0000 (09:30 +1000)
commitc9137065814609111ec0ed29246388f4ad086732
treee97ebfb1e7aefe453fe46d935f4a06f77a08ec40
parentbf1457bdbb736a54eb2eb70bc531e11eb468de7e
ppc: use macros to make cpu type name from string literal

Replace
  "-" TYPE_POWERPC_CPU
when composing cpu type name from cpu model string literal
and the same pattern in format strings with
 POWERPC_CPU_TYPE_SUFFIX and POWERPC_CPU_TYPE_NAME(model)
macroses like we do in x86.

Later POWERPC_CPU_TYPE_NAME() will be used to define default
cpu type per machine type and as bonus it will be consistent
and easy grep-able pattern across all other targets that I'm
plannig to treat the same way.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/cpu-models.c
target/ppc/cpu.h
target/ppc/kvm.c
target/ppc/kvm_ppc.h
target/ppc/translate_init.c