From 9e175711d626d45caa758c8468bf148e6d21739d Mon Sep 17 00:00:00 2001 From: Igor Mammedov Date: Tue, 20 Mar 2018 08:26:15 -0400 Subject: [PATCH] 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 --- qemu/target/sparc/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu/target/sparc/cpu.c b/qemu/target/sparc/cpu.c index 73fcdd17..831e7a6b 100644 --- a/qemu/target/sparc/cpu.c +++ b/qemu/target/sparc/cpu.c @@ -757,7 +757,7 @@ static bool sparc_cpu_has_work(CPUState *cs) 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; /* SPARC cpu model names happen to have whitespaces,