Home
last modified time | relevance | path

Searched refs:def (Results 1 – 25 of 62) sorted by relevance

123

/qemu/target/s390x/
H A Dcpu_models_system.c33 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 Dcpu_models.c111 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 Dcpu_models.h45 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 Dcpu_features.c199 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 Dcpu.c76 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 Dcpu.c366 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 Dgdbstub.c65 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 Dtestacpi.py241 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 Dsmilatency.py239 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 Dsmbios.py244 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 Dtestcpuid.py237 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 Dqapi-util.c69 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 Dapplesmc.c259 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 Dtarget_proc.h15 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 Dobject_interfaces.c183 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 Dencode.def72 #include "encode_pp.def"
73 #include "encode_subinsn.def"
74 #include "allextenc.def"
/qemu/plugins/
H A Dmeson.build30 # 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 Dtarget_proc.h77 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 Dtcg_gen_extract.cocci30 def debug(msg="", trailer="\n"):
32 def low_bits_count(value):
37 def Mn(order): # Mersenne number
/qemu/tests/qapi-schema/
H A Dqapi-schema-test.out34 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 Dqapi-schema-test.json38 { '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 Dtcg.c2940 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 Dtlb_helper.c445 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 Dutil.h27 int def, Error **errp);
/qemu/block/
H A Daccounting.c45 static bool bool_from_onoffauto(OnOffAuto val, bool def) in bool_from_onoffauto() argument
49 return def; in bool_from_onoffauto()

123