Skip to contentSkip to conversation

cris: Add "any" as alias for "crisv32" in user emulation

PATCH In review Edgar E. Iglesias 2 participants 2 messages Feb 3, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 cris: Add "any" as alias for "crisv32" in user emulation

From: "Edgar E. Iglesias" <[email protected]>

---

Notes (cl):
v1 -> v2:
Implement as an alias rather than as QOM type. (AF)

 target-cris/cpu.c | 6 ++++++
 1 file changed, 6 insertions(+)
target-cris/cpu.c +6 -0
index 44301a4..acb5688 100644
@@ -66,6 +66,12 @@ static ObjectClass *cris_cpu_class_by_name(const char *cpu_model)
         return NULL;
     }
 
+#if defined(CONFIG_USER_ONLY)
+    if (strcasecmp(cpu_model, "any") == 0) {
+        return object_class_by_name("crisv32-" TYPE_CRIS_CPU);
+    }
+#endif
+
     typename = g_strdup_printf("%s-" TYPE_CRIS_CPU, cpu_model);
     oc = object_class_by_name(typename);
     g_free(typename);
Signature · 1 line
1.8.3.2
Reviewed-by on v2 1/1
#1 lore raw

Am 03.02.2014 14:23, schrieb Edgar E. Iglesias:

Quoted 8 lines

From: "Edgar E. Iglesias" <[email protected]>

---

Notes (cl):
v1 -> v2:
Implement as an alias rather than as QOM type. (AF)

Thanks,
Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg