[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[qemu-s390x] [PATCH v3 25/25] cpu: get rid of cpu_generic_init()
From: |
Igor Mammedov |
Subject: |
[qemu-s390x] [PATCH v3 25/25] cpu: get rid of cpu_generic_init() |
Date: |
Tue, 23 Jan 2018 09:08:24 +0100 |
There aren't any users of the helper left, remove it.
Signed-off-by: Igor Mammedov <address@hidden>
---
CC: Richard Henderson <address@hidden>
CC: "Emilio G. Cota" <address@hidden>
CC: Paolo Bonzini <address@hidden>
CC: Eduardo Habkost <address@hidden>
CC: "Alex Bennée" <address@hidden>
CC: "Philippe Mathieu-Daudé" <address@hidden>
---
qom/cpu.c | 17 ++---------------
1 file changed, 2 insertions(+), 15 deletions(-)
diff --git a/qom/cpu.c b/qom/cpu.c
index aab8437..cf6880d 100644
--- a/qom/cpu.c
+++ b/qom/cpu.c
@@ -304,22 +304,9 @@ static ObjectClass *cpu_common_class_by_name(const char
*cpu_model)
static void cpu_common_parse_features(const char *typename, char *features,
Error **errp)
{
- char *featurestr; /* Single "key=value" string being parsed */
char *val;
- static bool cpu_globals_initialized;
-
- /* TODO: all callers of ->parse_features() need to be changed to
- * call it only once, so we can remove this check (or change it
- * to assert(!cpu_globals_initialized).
- * Current callers of ->parse_features() are:
- * - cpu_generic_init()
- */
- if (cpu_globals_initialized) {
- return;
- }
- cpu_globals_initialized = true;
-
- featurestr = features ? strtok(features, ",") : NULL;
+ /* Single "key=value" string being parsed */
+ char *featurestr = features ? strtok(features, ",") : NULL;
while (featurestr) {
val = strchr(featurestr, '=');
--
2.7.4
- [qemu-s390x] [PATCH v3 13/25] openrisc: cpu: add CPU_RESOLVING_TYPE macro, (continued)
- [qemu-s390x] [PATCH v3 13/25] openrisc: cpu: add CPU_RESOLVING_TYPE macro, Igor Mammedov, 2018/01/23
- [qemu-s390x] [PATCH v3 18/25] tricore: cpu: add CPU_RESOLVING_TYPE macro, Igor Mammedov, 2018/01/23
- [qemu-s390x] [PATCH v3 19/25] unicore32: cpu: add CPU_RESOLVING_TYPE macro, Igor Mammedov, 2018/01/23
- [qemu-s390x] [PATCH v3 20/25] xtensa: cpu: add CPU_RESOLVING_TYPE macro, Igor Mammedov, 2018/01/23
- [qemu-s390x] [PATCH v3 21/25] hppa: cpu: add CPU_RESOLVING_TYPE macro, Igor Mammedov, 2018/01/23
- [qemu-s390x] [PATCH v3 22/25] tilegx: cpu: add CPU_RESOLVING_TYPE macro, Igor Mammedov, 2018/01/23
- [qemu-s390x] [PATCH v3 23/25] Use cpu_create(type) instead of cpu_init(cpu_model), Igor Mammedov, 2018/01/23
- [qemu-s390x] [PATCH v3 24/25] cpu: get rid of unused cpu_init() defines, Igor Mammedov, 2018/01/23
- [qemu-s390x] [PATCH v3 25/25] cpu: get rid of cpu_generic_init(),
Igor Mammedov <=