mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 09:25:38 +00:00
sparc: cleanup cpu type name composition
introduce SPARC_CPU_TYPE_NAME macro and use it to construct cpu type names. Backports commit 1d4bfc5496387124e56df6fd49481e1821403456 from qemu
This commit is contained in:
parent
074865ff98
commit
9e175711d6
|
@ -757,7 +757,7 @@ static bool sparc_cpu_has_work(CPUState *cs)
|
||||||
|
|
||||||
static char *sparc_cpu_type_name(const char *cpu_model)
|
static char *sparc_cpu_type_name(const char *cpu_model)
|
||||||
{
|
{
|
||||||
char *name = g_strdup_printf("%s-" TYPE_SPARC_CPU, cpu_model);
|
char *name = g_strdup_printf(SPARC_CPU_TYPE_NAME("%s"), cpu_model);
|
||||||
char *s = name;
|
char *s = name;
|
||||||
|
|
||||||
/* SPARC cpu model names happen to have whitespaces,
|
/* SPARC cpu model names happen to have whitespaces,
|
||||||
|
|
Loading…
Reference in a new issue