cpu.c (8ed877b78498c89aa7ce5c76aa20841ff5072796) | cpu.c (1f5c00cfdb8114c1e3a13426588ceb64f82c9ddb) |
---|---|
1/* 2 * i386 CPUID helper functions 3 * 4 * Copyright (c) 2003 Fabrice Bellard 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 --- 2221 unchanged lines hidden (view full) --- 2230 CpuDefinitionInfoList **cpu_list = user_data; 2231 CpuDefinitionInfoList *entry; 2232 CpuDefinitionInfo *info; 2233 2234 info = g_malloc0(sizeof(*info)); 2235 info->name = x86_cpu_class_get_model_name(cc); 2236 x86_cpu_class_check_missing_features(cc, &info->unavailable_features); 2237 info->has_unavailable_features = true; | 1/* 2 * i386 CPUID helper functions 3 * 4 * Copyright (c) 2003 Fabrice Bellard 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 --- 2221 unchanged lines hidden (view full) --- 2230 CpuDefinitionInfoList **cpu_list = user_data; 2231 CpuDefinitionInfoList *entry; 2232 CpuDefinitionInfo *info; 2233 2234 info = g_malloc0(sizeof(*info)); 2235 info->name = x86_cpu_class_get_model_name(cc); 2236 x86_cpu_class_check_missing_features(cc, &info->unavailable_features); 2237 info->has_unavailable_features = true; |
2238 info->q_typename = g_strdup(object_class_get_name(oc)); | |
2239 2240 entry = g_malloc0(sizeof(*entry)); 2241 entry->value = info; 2242 entry->next = *cpu_list; 2243 *cpu_list = entry; 2244} 2245 2246CpuDefinitionInfoList *arch_query_cpu_definitions(Error **errp) --- 568 unchanged lines hidden (view full) --- 2815 target_ulong cr4; 2816 uint64_t xcr0; 2817 int i; 2818 2819 xcc->parent_reset(s); 2820 2821 memset(env, 0, offsetof(CPUX86State, end_reset_fields)); 2822 | 2238 2239 entry = g_malloc0(sizeof(*entry)); 2240 entry->value = info; 2241 entry->next = *cpu_list; 2242 *cpu_list = entry; 2243} 2244 2245CpuDefinitionInfoList *arch_query_cpu_definitions(Error **errp) --- 568 unchanged lines hidden (view full) --- 2814 target_ulong cr4; 2815 uint64_t xcr0; 2816 int i; 2817 2818 xcc->parent_reset(s); 2819 2820 memset(env, 0, offsetof(CPUX86State, end_reset_fields)); 2821 |
2823 tlb_flush(s, 1); 2824 | |
2825 env->old_exception = -1; 2826 2827 /* init to reset state */ 2828 2829 env->hflags2 |= HF2_GIF_MASK; 2830 2831 cpu_x86_update_cr0(env, 0x60000010); 2832 env->a20_mask = ~0x0; --- 928 unchanged lines hidden --- | 2822 env->old_exception = -1; 2823 2824 /* init to reset state */ 2825 2826 env->hflags2 |= HF2_GIF_MASK; 2827 2828 cpu_x86_update_cr0(env, 0x60000010); 2829 env->a20_mask = ~0x0; --- 928 unchanged lines hidden --- |