cpu.c (d28e29a92585e94264628b1b27262fe2d7573f51) cpu.c (ba1ba5cca3962a9cc400c713c736b4fb8db1f38e)
1/*
2 * QEMU ARM CPU
3 *
4 * Copyright (c) 2012 SUSE LINUX Products GmbH
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2

--- 897 unchanged lines hidden (view full) ---

906 char *typename;
907 char **cpuname;
908
909 if (!cpu_model) {
910 return NULL;
911 }
912
913 cpuname = g_strsplit(cpu_model, ",", 1);
1/*
2 * QEMU ARM CPU
3 *
4 * Copyright (c) 2012 SUSE LINUX Products GmbH
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2

--- 897 unchanged lines hidden (view full) ---

906 char *typename;
907 char **cpuname;
908
909 if (!cpu_model) {
910 return NULL;
911 }
912
913 cpuname = g_strsplit(cpu_model, ",", 1);
914 typename = g_strdup_printf("%s-" TYPE_ARM_CPU, cpuname[0]);
914 typename = g_strdup_printf(ARM_CPU_TYPE_NAME("%s"), cpuname[0]);
915 oc = object_class_by_name(typename);
916 g_strfreev(cpuname);
917 g_free(typename);
918 if (!oc || !object_class_dynamic_cast(oc, TYPE_ARM_CPU) ||
919 object_class_is_abstract(oc)) {
920 return NULL;
921 }
922 return oc;

--- 857 unchanged lines hidden ---
915 oc = object_class_by_name(typename);
916 g_strfreev(cpuname);
917 g_free(typename);
918 if (!oc || !object_class_dynamic_cast(oc, TYPE_ARM_CPU) ||
919 object_class_is_abstract(oc)) {
920 return NULL;
921 }
922 return oc;

--- 857 unchanged lines hidden ---