* [Qemu-devel] [PATCH v2] cris: Add "any" as alias for "crisv32" in user emulation
@ 2014-02-03 13:23 Edgar E. Iglesias
2014-02-03 13:57 ` Andreas Färber
0 siblings, 1 reply; 2+ messages in thread
From: Edgar E. Iglesias @ 2014-02-03 13:23 UTC (permalink / raw)
To: qemu-devel; +Cc: afaerber
From: "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
---
Notes (cl):
v1 -> v2:
Implement as an alias rather than as QOM type. (AF)
target-cris/cpu.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/target-cris/cpu.c b/target-cris/cpu.c
index 44301a4..acb5688 100644
--- a/target-cris/cpu.c
+++ b/target-cris/cpu.c
@@ -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);
--
1.8.3.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH v2] cris: Add "any" as alias for "crisv32" in user emulation
2014-02-03 13:23 [Qemu-devel] [PATCH v2] cris: Add "any" as alias for "crisv32" in user emulation Edgar E. Iglesias
@ 2014-02-03 13:57 ` Andreas Färber
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Färber @ 2014-02-03 13:57 UTC (permalink / raw)
To: Edgar E. Iglesias, qemu-devel
Am 03.02.2014 14:23, schrieb Edgar E. Iglesias:
> From: "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>
>
> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
> ---
>
> Notes (cl):
> v1 -> v2:
> Implement as an alias rather than as QOM type. (AF)
Reviewed-by: Andreas Färber <afaerber@suse.de>
Thanks,
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-03 13:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-03 13:23 [Qemu-devel] [PATCH v2] cris: Add "any" as alias for "crisv32" in user emulation Edgar E. Iglesias
2014-02-03 13:57 ` Andreas Färber
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.