/qemu/target/hexagon/ |
H A D | hex_common.py | 323 f.write(code_fmt(f"""\ 420 f.write(code_fmt(f"""\ 424 f.write(code_fmt(f"""\ 430 f.write(code_fmt(f"""\ 437 f.write(code_fmt(f"""\ 442 f.write(code_fmt(f"""\ 448 f.write(code_fmt(f"""\ 453 f.write(code_fmt(f"""\ 460 f.write(code_fmt(f"""\ 471 f.write(code_fmt(f"""\ [all …]
|
H A D | gen_decodetree.py | 100 f.write(f"## DO NOT MODIFY - This file is generated by {sys.argv[0]}\n\n") 139 f.write(f"%{tag}_{reg_type}{reg_id}\t" 144 f.write(f"\t!function=decode_mapped_reg_{reg_mapping}") 145 f.write("\n") 159 f.write(f"%{tag}_{imm_type}{imm_letter}\t{field_str}\n") 173 f.write(f"@{tag}\t{enc_str}") 177 f.write(f" {reg_type}{reg_id}=%{tag}_{reg_type}{reg_id}") 181 f.write(f" {imm_type}{imm_letter}=%{tag}_{imm_type}{imm_letter}") 184 f.write(" %PP") 185 f.write("\n") [all …]
|
H A D | gen_tcg_funcs.py | 47 def gen_tcg_func(f, tag, regs, imms): argument 48 f.write(f"static void generate_{tag}(DisasContext *ctx)\n") 49 f.write("{\n") 60 reg.decl_tcg(f, tag, i) 64 f.write(f" int {hex_common.imm_name(immlett)} = insn->immed[{i}];\n") 77 f.write(f" emit_{tag}({arguments});\n") 80 f.write(f" fGEN_TCG_{tag}({hex_common.semdict[tag]});\n") 92 f.write(f" gen_helper_{tag}({arguments});\n") 98 reg.log_write(f, tag) 100 f.write("}\n\n") [all …]
|
H A D | gen_helper_funcs.py | 48 f.write(f"{ret_type} HELPER({tag})({arguments})\n") 49 f.write("{\n") 51 f.write(hex_common.code_fmt(f"""\ 59 f.write(hex_common.code_fmt(f"""\ 71 f.write(hex_common.code_fmt(f"""\ 74 f.write(hex_common.code_fmt(f"""\ 79 f.write(hex_common.code_fmt(f"""\ 83 f.write(hex_common.code_fmt(f"""\ 88 f.write(hex_common.code_fmt(f"""\ 96 f.write(hex_common.code_fmt(f"""\ [all …]
|
H A D | cpu.c | 140 qemu_fprintf(f, " )\n"); in print_vreg() 165 qemu_fprintf(f, "0x%02x", in print_qreg() 170 qemu_fprintf(f, " )\n"); in print_qreg() 195 print_reg(f, env, i); in hexagon_dump() 197 print_reg(f, env, HEX_REG_SA0); in hexagon_dump() 201 print_reg(f, env, HEX_REG_M0); in hexagon_dump() 202 print_reg(f, env, HEX_REG_M1); in hexagon_dump() 205 print_reg(f, env, HEX_REG_GP); in hexagon_dump() 207 print_reg(f, env, HEX_REG_PC); in hexagon_dump() 223 qemu_fprintf(f, "}\n"); in hexagon_dump() [all …]
|
H A D | gen_trans_funcs.py | 49 def mark_which_imm_extended(f, tag): argument 56 f.write(code_fmt(f"""\ 74 def gen_trans_funcs(f): argument 75 f.write(f"/* DO NOT MODIFY - This file is generated by {sys.argv[0]} */\n\n") 80 f.write(textwrap.dedent(f"""\ 91 f.write(code_fmt(f"""\ 105 f.write(code_fmt(f"""\ 111 f.write(code_fmt(f"""\ 115 f.write(textwrap.dedent(f"""\ 123 with open(sys.argv[2], "w") as f: [all …]
|
H A D | gen_printinsn.py | 104 with open(sys.argv[3], "w") as f: 127 f.write(f'{macname}({tag},"{beh}%s"') 139 f.write(f", insn->regno[{regno}]") 141 f.write(f", sreg2str(insn->regno[{regno}])") 143 f.write(f", creg2str(insn->regno[{regno}])") 145 f.write(f", insn->regno[{regno}] + 1" f", insn->regno[{regno}]") 158 f.write(',insn->extension_valid?"#":""') 160 f.write(',""') 169 f.write(',""') 171 f.write(f", insn->immed[{ii}]") [all …]
|
H A D | gen_analyze_funcs.py | 41 def gen_analyze_func(f, tag, regs, imms): argument 42 f.write(f"static void analyze_{tag}(DisasContext *ctx)\n") 43 f.write("{\n") 45 f.write(" Insn *insn G_GNUC_UNUSED = ctx->insn;\n") 52 reg.analyze_write(f, tag, i) 54 reg.analyze_read(f, i) 64 f.write(" ctx->has_hvx_helper = true;\n") 66 f.write("}\n\n") 91 with open(sys.argv[-1], "w") as f: 92 f.write("#ifndef HEXAGON_TCG_FUNCS_H\n") [all …]
|
/qemu/migration/ |
H A D | qemu-file.c | 243 while ((idx = find_next_bit(f->may_free, f->iovcnt, idx + 1)) < f->iovcnt) { in qemu_iovec_release_ram() 317 pending = f->buf_size - f->buf_index; in qemu_fill_buffer() 319 memmove(f->buf, f->buf + f->buf_index, pending); in qemu_fill_buffer() 389 if (f->iovcnt > 0 && buf == f->iov[f->iovcnt - 1].iov_base + in add_to_iovec() 390 f->iov[f->iovcnt - 1].iov_len && in add_to_iovec() 393 f->iov[f->iovcnt - 1].iov_len += size; in add_to_iovec() 401 set_bit(f->iovcnt, f->may_free); in add_to_iovec() 404 f->iov[f->iovcnt++].iov_len = size; in add_to_iovec() 417 if (!add_to_iovec(f, f->buf + f->buf_index, len, false)) { in add_buf_to_iovec() 565 f->buf[f->buf_index] = v; in qemu_put_byte() [all …]
|
H A D | vmstate-types.c | 28 *v = qemu_get_byte(f); in get_bool() 36 qemu_put_byte(f, *v); in put_bool() 52 qemu_get_s8s(f, v); in get_int8() 60 qemu_put_s8s(f, v); in put_int8() 76 qemu_get_sbe16s(f, v); in get_int16() 84 qemu_put_sbe16s(f, v); in put_int16() 201 qemu_get_8s(f, v); in get_uint8() 209 qemu_put_8s(f, v); in put_uint8() 671 QEMUFile *f; member 681 QEMUFile *f = capsule->f; in put_gtree_elem() local [all …]
|
H A D | savevm.h | 38 void qemu_savevm_state_header(QEMUFile *f); 49 void qemu_savevm_send_open_return_path(QEMUFile *f); 51 void qemu_savevm_send_postcopy_advise(QEMUFile *f); 52 void qemu_savevm_send_postcopy_listen(QEMUFile *f); 53 void qemu_savevm_send_postcopy_run(QEMUFile *f); 54 void qemu_savevm_send_postcopy_resume(QEMUFile *f); 61 void qemu_savevm_send_colo_enable(QEMUFile *f); 62 void qemu_savevm_live_state(QEMUFile *f); 63 int qemu_save_device_state(QEMUFile *f); 65 int qemu_loadvm_state(QEMUFile *f); [all …]
|
H A D | qemu-file.h | 34 int qemu_fclose(QEMUFile *f); 44 uint64_t qemu_file_transferred(QEMUFile *f); 68 void qemu_file_skip(QEMUFile *f, int size); 71 int qemu_file_get_error_obj(QEMUFile *f, Error **errp); 72 void qemu_file_set_error(QEMUFile *f, int ret); 73 int qemu_file_shutdown(QEMUFile *f); 74 QEMUFile *qemu_file_get_return_path(QEMUFile *f); 75 int qemu_fflush(QEMUFile *f); 76 void qemu_file_set_blocking(QEMUFile *f, bool block); 78 void qemu_set_offset(QEMUFile *f, off_t off, int whence); [all …]
|
H A D | savevm.c | 179 timer_get(f, v); in get_timer() 187 timer_put(f, v); in put_timer() 1070 qemu_fflush(f); in qemu_savevm_command_send() 1488 qemu_fflush(f); in qemu_savevm_state_complete_postcopy() 3079 QEMUFile *f; in save_snapshot() local 3152 if (!f) { in save_snapshot() 3186 QEMUFile *f; in qmp_xen_save_devices_state() local 3236 QEMUFile *f; in qmp_xen_load_devices_state() local 3258 qemu_fclose(f); in qmp_xen_load_devices_state() 3270 QEMUFile *f; in load_snapshot() local [all …]
|
/qemu/include/migration/ |
H A D | qemu-file-types.h | 40 int qemu_get_byte(QEMUFile *f); 57 qemu_put_be64(f, *pv); in qemu_put_be64s() 62 qemu_put_be32(f, *pv); in qemu_put_be32s() 67 qemu_put_be16(f, *pv); in qemu_put_be16s() 72 qemu_put_byte(f, *pv); in qemu_put_8s() 77 *pv = qemu_get_be64(f); in qemu_get_be64s() 82 *pv = qemu_get_be32(f); in qemu_get_be32s() 87 *pv = qemu_get_be16(f); in qemu_get_be16s() 92 *pv = qemu_get_byte(f); in qemu_get_8s() 113 return (int)qemu_get_be16(f); in qemu_get_sbe16() [all …]
|
/qemu/tests/tcg/xtensa/ |
H A D | test_b.S | 13 j 2f 27 j 2f 45 j 2f 59 j 2f 65 j 2f 79 j 2f 106 j 2f 119 j 2f 133 j 2f 147 j 2f [all …]
|
H A D | test_bi.S | 7 beqi a2, 7, 1f 11 beqi a2, 7, 1f 12 j 2f 20 bnei a2, 7, 1f 25 j 2f 42 j 2f 55 j 2f 61 j 2f 74 j 2f 80 j 2f [all …]
|
H A D | test_loop.S | 10 loop a3, 1f 18 loop a2, 1f 21 j 1f 28 loop a3, 1f 30 j 1f 38 loop a3, 1f 48 movi a4, 1f 54 j 1f 88 j 1f 92 j 2f [all …]
|
H A D | test_bz.S | 7 _beqz a2, 1f 11 _beqz a2, 1f 12 j 2f 20 _bnez a2, 1f 24 _bnez a2, 1f 25 j 2f 33 bltz a2, 1f 37 bltz a2, 1f 38 j 2f 46 bgez a2, 1f [all …]
|
/qemu/scripts/ |
H A D | mtest2make.py | 72 print(f'all-{prefix}-targets = {all_targets}') 73 print(f'all-{prefix}-xml = {all_xml}') 75 print(f'ifeq ($(filter {prefix}, $(MAKECMDGOALS)),)') 77 print(f'endif') 78 print(f'{prefix}-build: run-ninja') 86 …targets = [f'{prefix}-{name}', f'{prefix}-report-{name}.junit.xml', f'{prefix}', f'{prefix}-report… 87 f'{prefix}-build'] 89 print(f'.{prefix}-{name}.deps = {deps}') 96 print(f'ifneq ($(filter {targets}, $(MAKECMDGOALS)),)') 98 print(f'endif') [all …]
|
/qemu/hw/misc/ |
H A D | omap_gpmc.c | 210 omap_nand_setio(f->dev, value, omap_gpmc_devsize(f), size); in omap_nand_write() 383 return f->iomem; in omap_gpmc_cs_memregion() 390 return &f->nandiomem; in omap_gpmc_cs_memregion() 400 if (!f->iomem && !f->dev) { in omap_gpmc_cs_map() 436 if (!f->iomem && !f->dev) { in omap_gpmc_cs_unmap() 708 omap_nand_setio(f->dev, value, omap_gpmc_devsize(f), size); in omap_gpmc_write() 714 omap_nand_setio(f->dev, value, omap_gpmc_devsize(f), size); in omap_gpmc_write() 871 f = &s->cs_file[cs]; in omap_gpmc_attach() 875 f->iomem = iomem; in omap_gpmc_attach() 888 f = &s->cs_file[cs]; in omap_gpmc_attach_nand() [all …]
|
/qemu/tests/unit/ |
H A D | test-opts-visitor.c | 47 visit_type_UserDefOptions(v, NULL, &f->userdef, &f->err); in setup_fixture() 57 error_free(f->err); in teardown_fixture() 75 g_assert(f->err == NULL); in expect_ok() 76 g_assert(f->userdef != NULL); in expect_ok() 83 g_assert(f->err != NULL); in expect_fail() 103 expect_ok(f, test_data); in test_value() 137 expect_ok(f, test_data); in expect_i64_min() 138 g_assert(f->userdef->has_i64); in expect_i64_min() 147 expect_ok(f, test_data); in expect_i64_max() 157 expect_ok(f, test_data); in expect_zero() [all …]
|
/qemu/scripts/codeconverter/codeconverter/ |
H A D | test_patching.py | 32 f = FileInfo(files, of.name) 33 f.load() 34 matches = f.matches_of_type(BasicPattern) 39 f.patches.append(p2.append('XXX')) 42 f.gen_patches(matches) 43 patched = f.get_patched_content() 72 f = FileInfo(files, of.name) 73 f.load() 78 f1 = f.find_match(Function, 'function1') 79 f2 = f.find_match(Function, 'function2') [all …]
|
/qemu/roms/ |
H A D | edk2-build.py | 32 with open(f'{gitdir}/rebase-merge/msgnum', 'r', encoding = 'utf-8') as f: 33 msgnum = int(f.read()) 34 with open(f'{gitdir}/rebase-merge/end', 'r', encoding = 'utf-8') as f: 35 end = int(f.read()) 36 with open(f'{gitdir}/rebase-merge/head-name', 'r', encoding = 'utf-8') as f: 37 head = f.read().strip().split('/') 86 return f'{name}=L{value}\\0' 113 print(f'### {line2}') 118 logfile = f'{section}.log' 129 f.write(result.stdout) [all …]
|
/qemu/tests/tcg/multiarch/ |
H A D | sha512.c | 264 uint64_t t1 = *h + Sigma1(e) + Ch(e, f, g) + k + w; in Round() 276 Round(a, b, c, &d, e, f, g, &h, 0x428a2f98d728ae22ull, w0 = be64_to_cpu(chunk[0])); in Transform() 277 Round(h, a, b, &c, d, e, f, &g, 0x7137449123ef65cdull, w1 = be64_to_cpu(chunk[1])); in Transform() 278 Round(g, h, a, &b, c, d, e, &f, 0xb5c0fbcfec4d3b2full, w2 = be64_to_cpu(chunk[2])); in Transform() 279 Round(f, g, h, &a, b, c, d, &e, 0xe9b5dba58189dbbcull, w3 = be64_to_cpu(chunk[3])); in Transform() 280 Round(e, f, g, &h, a, b, c, &d, 0x3956c25bf348b538ull, w4 = be64_to_cpu(chunk[4])); in Transform() 281 Round(d, e, f, &g, h, a, b, &c, 0x59f111f1b605d019ull, w5 = be64_to_cpu(chunk[5])); in Transform() 282 Round(c, d, e, &f, g, h, a, &b, 0x923f82a4af194f9bull, w6 = be64_to_cpu(chunk[6])); in Transform() 283 Round(b, c, d, &e, f, g, h, &a, 0xab1c5ed5da6d8118ull, w7 = be64_to_cpu(chunk[7])); in Transform() 284 Round(a, b, c, &d, e, f, g, &h, 0xd807aa98a3030242ull, w8 = be64_to_cpu(chunk[8])); in Transform() [all …]
|
/qemu/target/s390x/ |
H A D | cpu-dump.c | 28 void s390_cpu_dump_state(CPUState *cs, FILE *f, int flags) in s390_cpu_dump_state() argument 36 qemu_fprintf(f, "\n"); in s390_cpu_dump_state() 38 qemu_fprintf(f, " cc %15s\n", cc_name(env->cc_op)); in s390_cpu_dump_state() 40 qemu_fprintf(f, " cc %02x\n", env->cc_op); in s390_cpu_dump_state() 44 qemu_fprintf(f, "R%02d=%016" PRIx64, i, env->regs[i]); in s390_cpu_dump_state() 46 qemu_fprintf(f, "\n"); in s390_cpu_dump_state() 48 qemu_fprintf(f, " "); in s390_cpu_dump_state() 61 qemu_fprintf(f, "F%02d=%016" PRIx64 "%c", in s390_cpu_dump_state() 72 qemu_fprintf(f, "\n"); in s390_cpu_dump_state() 74 qemu_fprintf(f, " "); in s390_cpu_dump_state() [all …]
|