/qemu/target/s390x/ |
H A D | cpu_models_system.c | 33 if (max_model->def->gen < model->def->gen || in check_unavailable_features() 34 (max_model->def->gen == model->def->gen && in check_unavailable_features() 35 max_model->def->ec_ga < model->def->ec_ga)) { in check_unavailable_features() 180 info->name = g_strdup_printf("%s-base", model->def->name); in cpu_info_from_model() 184 bitmap_andnot(bitmap, model->def->base_feat, model->features, in cpu_info_from_model() 191 bitmap_andnot(bitmap, model->features, model->def->base_feat, in cpu_info_from_model() 289 if (modela.def->gen == modelb.def->gen) { in qmp_query_cpu_model_comparison() 290 if (modela.def->ec_ga == modelb.def->ec_ga) { in qmp_query_cpu_model_comparison() 293 } else if (modela.def->ec_ga < modelb.def->ec_ga) { in qmp_query_cpu_model_comparison() 298 } else if (modela.def->gen < modelb.def->gen) { in qmp_query_cpu_model_comparison() [all …]
|
H A D | cpu_models.c | 111 const S390CPUDef *def; in s390_cpudef_featoff() local 113 def = s390_find_cpu_def(0, gen, ec_ga, NULL); in s390_cpudef_featoff() 114 clear_bit(feat, (unsigned long *)&def->default_feat); in s390_cpudef_featoff() 122 const S390CPUDef *def = &s390_cpu_defs[i]; in s390_cpudef_featoff_greater() local 124 if (def->gen < gen) { in s390_cpudef_featoff_greater() 127 if (def->gen == gen && def->ec_ga < ec_ga) { in s390_cpudef_featoff_greater() 131 clear_bit(feat, (unsigned long *)&def->default_feat); in s390_cpudef_featoff_greater() 170 return cpu->model->def->hmfai; in s390_get_hmfai() 184 return cpu->model->def->mha_pow; in s390_get_mha_pow() 303 const S390CPUDef *def = &s390_cpu_defs[i]; in s390_find_cpu_def() local [all …]
|
H A D | cpu_models.h | 45 const S390CPUDef *def; member 87 if (model->def->gen >= S390_GEN_Z10) { in s390_ibc_from_cpu_model() 88 ibc = ((model->def->gen - S390_GEN_Z10) << 4) + model->def->ec_ga; in s390_ibc_from_cpu_model() 111 ((uint64_t)model->def->type << 16) | in s390_cpuid_from_cpu_model() 112 (model->def->gen == 7 ? 0 : (uint64_t)model->cpu_id_format << 15); in s390_cpuid_from_cpu_model()
|
H A D | cpu_features.c | 199 const S390FeatGroupDef *def = s390_feat_group_def(group); in s390_feat_bitmap_to_ascii() local 201 bitmap_and(tmp, bitmap, def->feat, S390_FEAT_MAX); in s390_feat_bitmap_to_ascii() 202 if (bitmap_equal(tmp, def->feat, S390_FEAT_MAX)) { in s390_feat_bitmap_to_ascii() 203 bitmap_andnot(bitmap, bitmap, def->feat, S390_FEAT_MAX); in s390_feat_bitmap_to_ascii() 204 fn(def->name, opaque); in s390_feat_bitmap_to_ascii()
|
/qemu/target/sparc/ |
H A D | cpu.c | 76 env->mmuregs[0] |= env->def.mmu_bm; in sparc_cpu_reset_hold() 864 env->def.features |= CPU_FEATURE_FLOAT128; in sparc_cpu_realizefn() 867 env->version = env->def.iu_version; in sparc_cpu_realizefn() 868 env->nwindows = env->def.nwindows; in sparc_cpu_realizefn() 870 env->mmuregs[0] |= env->def.mmu_version; in sparc_cpu_realizefn() 872 env->mxccregs[7] |= env->def.mxcc_version; in sparc_cpu_realizefn() 874 env->mmu_version = env->def.mmu_version; in sparc_cpu_realizefn() 875 env->maxtl = env->def.maxtl; in sparc_cpu_realizefn() 876 env->version |= env->def.maxtl << 8; in sparc_cpu_realizefn() 877 env->version |= env->def.nwindows - 1; in sparc_cpu_realizefn() [all …]
|
/qemu/target/riscv/ |
H A D | cpu.c | 366 return 16 << mcc->def->misa_mxl_max; in riscv_cpu_max_xlen() 695 env->misa_mxl = mcc->def->misa_mxl_max; in riscv_cpu_reset_hold() 1092 env->misa_mxl = mcc->def->misa_mxl_max; in riscv_cpu_init() 1110 RISCV_CPU(obj)->cfg.ext_zicntr = !mcc->def->bare; in riscv_cpu_init() 1111 RISCV_CPU(obj)->cfg.ext_zihpm = !mcc->def->bare; in riscv_cpu_init() 1123 if (mcc->def->profile) { in riscv_cpu_init() 1124 mcc->def->profile->enabled = true; in riscv_cpu_init() 1127 env->misa_ext_mask = env->misa_ext = mcc->def->misa_ext; in riscv_cpu_init() 1128 riscv_cpu_cfg_merge(&cpu->cfg, &mcc->def->cfg); in riscv_cpu_init() 1130 if (mcc->def->priv_spec != RISCV_PROFILE_ATTR_UNUSED) { in riscv_cpu_init() [all …]
|
H A D | gdbstub.c | 65 switch (mcc->def->misa_mxl_max) { in riscv_cpu_gdb_read_register() 85 switch (mcc->def->misa_mxl_max) { in riscv_cpu_gdb_write_register() 362 switch (mcc->def->misa_mxl_max) { in riscv_cpu_register_gdb_regs_for_features()
|
/qemu/tests/functional/acpi-bits/bits-tests/ |
H A D | testacpi.py2 | 41 def register_tests(): 53 def test_mat(): 91 def test_pss(): 121 def test_pstates(): 130 def cpupath_apicid(cpupath): 193 def test_psd_thread_scope(): 212 def detail(d, fmt): 230 def test_table_checksum(data): 235 def test_apic(): 242 def test_dsdt(): [all …]
|
H A D | smilatency.py2 | 39 def register_tests(): 44 def smi_latency(): 86 def test_with_usb_disabled(): 90 def average_io_smi(port, value, count): 91 def f(): 98 def time_io_smi(port=0xb2, value=0, count=1000):
|
H A D | smbios.py2 | 44 def __new__(cls): 69 def __init__(self): 77 def structure_type(self, num): 95 def __new__(cls, u): 98 def __init__(self, u): 120 def __new__(cls, u, sm): 126 def __init__(self, u, sm): 134 def unpack_string(): 150 def fini(self): 155 def fmtstr(self, i): [all …]
|
H A D | testcpuid.py2 | 37 def cpuid_helper(function, index=None, shift=0, mask=~0, eax_mask=~0, ebx_mask=~0, ecx_mask=~0, edx… 44 def find_mask(m): 79 def test_cpuid_consistency(text, function, index=None, shift=0, mask=~0, eax_mask=~0, ebx_mask=~0, …
|
/qemu/qapi/ |
H A D | qapi-util.c | 69 int def, Error **errp) in qapi_enum_parse() argument 74 return def; in qapi_enum_parse() 84 return def; in qapi_enum_parse()
|
/qemu/hw/misc/ |
H A D | applesmc.c | 259 struct AppleSMCData *def; in applesmc_add_key() local 261 def = g_new0(struct AppleSMCData, 1); in applesmc_add_key() 262 def->key = key; in applesmc_add_key() 263 def->len = len; in applesmc_add_key() 264 def->data = data; in applesmc_add_key() 266 QLIST_INSERT_HEAD(&s->data_def, def, node); in applesmc_add_key()
|
/qemu/linux-user/sparc/ |
H A D | target_proc.h | 15 if (cpu_env->def.features & CPU_FEATURE_HYPV) { in open_cpuinfo() 21 dprintf(fd, "cpu\t\t: %s (QEMU)\n", cpu_env->def.name); in open_cpuinfo()
|
/qemu/qom/ |
H A D | object_interfaces.c | 183 const char *def; in object_property_help() local 187 def = qstring_get_str(qobject_to(QString, defval)); in object_property_help() 191 def = qbool_get_bool(qobject_to(QBool, defval)) ? "on" : "off"; in object_property_help() 196 def = def_json; in object_property_help() 200 g_string_append_printf(str, " (default: %s)", def); in object_property_help()
|
/qemu/target/hexagon/imported/ |
H A D | encode.def | 72 #include "encode_pp.def" 73 #include "encode_subinsn.def" 74 #include "allextenc.def"
|
/qemu/plugins/ |
H A D | meson.build | 30 # First, create a .def file listing all the symbols a plugin should expect to have 34 output: 'qemu_plugin_api.def', 51 dlltool_cmd = [dlltool, '--input-def', '@INPUT@',
|
/qemu/linux-user/s390x/ |
H A D | target_proc.h | 77 i, model->cpu_ver, cpu_ident(i), model->def->type); in show_cpu_summary() 87 dprintf(fd, "machine : %04X\n", model->def->type); in show_cpu_ids()
|
/qemu/scripts/coccinelle/ |
H A D | tcg_gen_extract.cocci | 30 def debug(msg="", trailer="\n"): 32 def low_bits_count(value): 37 def Mn(order): # Mersenne number
|
/qemu/tests/qapi-schema/ |
H A D | qapi-schema-test.out | 34 command user-def-cmd0 Empty2 -> Empty2 177 command user-def-cmd None -> None 179 object q_obj_user-def-cmd1-arg 181 command user-def-cmd1 q_obj_user-def-cmd1-arg -> None 183 object q_obj_user-def-cmd2-arg 186 command user-def-cmd2 q_obj_user-def-cmd2-arg -> UserDefTwo 317 command test-cmd-return-def-three None -> UserDefThree
|
H A D | qapi-schema-test.json | 38 { 'command': 'user-def-cmd0', 'data': 'Empty2', 'returns': 'Empty2' } 180 { 'command': 'user-def-cmd', 'data': {} } 181 { 'command': 'user-def-cmd1', 'data': {'ud1a': 'UserDefOne'} } 182 { 'command': 'user-def-cmd2', 289 { 'command': 'test-cmd-return-def-three', 'returns': 'UserDefThree' }
|
/qemu/tcg/ |
H A D | tcg.c | 2940 const TCGOpDef *def; in tcg_dump_ops() local 2945 def = &tcg_op_defs[c]; in tcg_dump_ops() 2962 nb_cargs = def->nb_cargs; in tcg_dump_ops() 2964 col += ne_fprintf(f, " %s ", def->name); in tcg_dump_ops() 2988 if (def->flags & TCG_OPF_INT) { in tcg_dump_ops() 2990 def->name, in tcg_dump_ops() 2992 } else if (def->flags & TCG_OPF_VECTOR) { in tcg_dump_ops() 2994 def->name, in tcg_dump_ops() 2998 col += ne_fprintf(f, " %s ", def->name); in tcg_dump_ops() 3001 nb_oargs = def->nb_oargs; in tcg_dump_ops() [all …]
|
/qemu/target/mips/tcg/system/ |
H A D | tlb_helper.c | 445 static void no_mmu_init(CPUMIPSState *env, const mips_def_t *def) in no_mmu_init() argument 451 static void fixed_mmu_init(CPUMIPSState *env, const mips_def_t *def) in fixed_mmu_init() argument 457 static void r4k_mmu_init(CPUMIPSState *env, const mips_def_t *def) in r4k_mmu_init() argument 459 env->tlb->nb_tlb = 1 + ((def->CP0_Config1 >> CP0C1_MMU) & 63); in r4k_mmu_init() 469 void mmu_init(CPUMIPSState *env, const mips_def_t *def) in mmu_init() argument 473 switch (def->mmu_type) { in mmu_init() 475 no_mmu_init(env, def); in mmu_init() 478 r4k_mmu_init(env, def); in mmu_init() 481 fixed_mmu_init(env, def); in mmu_init()
|
/qemu/include/qapi/ |
H A D | util.h | 27 int def, Error **errp);
|
/qemu/block/ |
H A D | accounting.c | 45 static bool bool_from_onoffauto(OnOffAuto val, bool def) in bool_from_onoffauto() argument 49 return def; in bool_from_onoffauto()
|