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

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

538}
539
540type_init(mips_cpu_register_types)
541
542static void mips_cpu_add_definition(gpointer data, gpointer user_data)
543{
544 ObjectClass *oc = data;
545 CpuDefinitionInfoList **cpu_list = user_data;
1/*
2 * QEMU MIPS CPU
3 *
4 * Copyright (c) 2012 SUSE LINUX Products GmbH
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either

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

538}
539
540type_init(mips_cpu_register_types)
541
542static void mips_cpu_add_definition(gpointer data, gpointer user_data)
543{
544 ObjectClass *oc = data;
545 CpuDefinitionInfoList **cpu_list = user_data;
546 CpuDefinitionInfoList *entry;
547 CpuDefinitionInfo *info;
548 const char *typename;
549
550 typename = object_class_get_name(oc);
551 info = g_malloc0(sizeof(*info));
552 info->name = g_strndup(typename,
553 strlen(typename) - strlen("-" TYPE_MIPS_CPU));
554 info->q_typename = g_strdup(typename);
555
546 CpuDefinitionInfo *info;
547 const char *typename;
548
549 typename = object_class_get_name(oc);
550 info = g_malloc0(sizeof(*info));
551 info->name = g_strndup(typename,
552 strlen(typename) - strlen("-" TYPE_MIPS_CPU));
553 info->q_typename = g_strdup(typename);
554
556 entry = g_malloc0(sizeof(*entry));
557 entry->value = info;
558 entry->next = *cpu_list;
559 *cpu_list = entry;
555 QAPI_LIST_PREPEND(*cpu_list, info);
560}
561
562CpuDefinitionInfoList *qmp_query_cpu_definitions(Error **errp)
563{
564 CpuDefinitionInfoList *cpu_list = NULL;
565 GSList *list;
566
567 list = object_class_get_list(TYPE_MIPS_CPU, false);

--- 40 unchanged lines hidden ---
556}
557
558CpuDefinitionInfoList *qmp_query_cpu_definitions(Error **errp)
559{
560 CpuDefinitionInfoList *cpu_list = NULL;
561 GSList *list;
562
563 list = object_class_get_list(TYPE_MIPS_CPU, false);

--- 40 unchanged lines hidden ---