mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
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>
This commit is contained in:
parent
bf1457bdbb
commit
c913706581
5 changed files with 9 additions and 6 deletions
|
@ -51,7 +51,7 @@
|
|||
\
|
||||
static const TypeInfo \
|
||||
glue(POWERPC_DEF_PREFIX(_pvr, _svr, _type), _cpu_type_info) = { \
|
||||
.name = _name "-" TYPE_POWERPC_CPU, \
|
||||
.name = POWERPC_CPU_TYPE_NAME(_name), \
|
||||
.parent = stringify(_type) "-family-" TYPE_POWERPC_CPU, \
|
||||
.class_init = \
|
||||
glue(POWERPC_DEF_PREFIX(_pvr, _svr, _type), _cpu_class_init), \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue