Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 658) sorted by relevance

12345678910>>...27

/qemu/migration/
A Dqemu-file.c242 while ((idx = find_next_bit(f->may_free, f->iovcnt, idx + 1)) < f->iovcnt) { in qemu_iovec_release_ram()
316 pending = f->buf_size - f->buf_index; in qemu_fill_buffer()
318 memmove(f->buf, f->buf + f->buf_index, pending); in qemu_fill_buffer()
388 if (f->iovcnt > 0 && buf == f->iov[f->iovcnt - 1].iov_base + in add_to_iovec()
389 f->iov[f->iovcnt - 1].iov_len && in add_to_iovec()
392 f->iov[f->iovcnt - 1].iov_len += size; in add_to_iovec()
400 set_bit(f->iovcnt, f->may_free); in add_to_iovec()
403 f->iov[f->iovcnt++].iov_len = size; in add_to_iovec()
416 if (!add_to_iovec(f, f->buf + f->buf_index, len, false)) { in add_buf_to_iovec()
564 f->buf[f->buf_index] = v; in qemu_put_byte()
[all …]
A Dvmstate-types.c28 *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 …]
A Dsavevm.h38 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 …]
A Dqemu-file.h34 int qemu_fclose(QEMUFile *f);
44 uint64_t qemu_file_transferred(QEMUFile *f);
64 void qemu_file_skip(QEMUFile *f, int size);
67 int qemu_file_get_error_obj(QEMUFile *f, Error **errp);
68 void qemu_file_set_error(QEMUFile *f, int ret);
69 int qemu_file_shutdown(QEMUFile *f);
70 QEMUFile *qemu_file_get_return_path(QEMUFile *f);
71 int qemu_fflush(QEMUFile *f);
72 void qemu_file_set_blocking(QEMUFile *f, bool block);
74 void qemu_set_offset(QEMUFile *f, off_t off, int whence);
[all …]
A Dsavevm.c178 timer_get(f, v); in get_timer()
186 timer_put(f, v); in put_timer()
1052 qemu_fflush(f); in qemu_savevm_command_send()
1470 qemu_fflush(f); in qemu_savevm_state_complete_postcopy()
3054 QEMUFile *f; in save_snapshot() local
3127 if (!f) { in save_snapshot()
3161 QEMUFile *f; in qmp_xen_save_devices_state() local
3211 QEMUFile *f; in qmp_xen_load_devices_state() local
3233 qemu_fclose(f); in qmp_xen_load_devices_state()
3245 QEMUFile *f; in load_snapshot() local
[all …]
/qemu/target/hexagon/
A Dhex_common.py340 f.write(code_fmt(f"""\
449 f.write(code_fmt(f"""\
453 f.write(code_fmt(f"""\
458 f.write(code_fmt(f"""\
465 f.write(code_fmt(f"""\
469 f.write(code_fmt(f"""\
475 f.write(code_fmt(f"""\
479 f.write(code_fmt(f"""\
486 f.write(code_fmt(f"""\
497 f.write(code_fmt(f"""\
[all …]
A Dgen_decodetree.py100 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 …]
A Dgen_tcg_funcs.py47 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 …]
A Dgen_helper_funcs.py48 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 …]
A Dgen_trans_funcs.py49 def mark_which_imm_extended(f, tag): argument
56 f.write(code_fmt(f"""\
77 def gen_trans_funcs(f): argument
78 f.write(f"/* DO NOT MODIFY - This file is generated by {sys.argv[0]} */\n\n")
83 f.write(textwrap.dedent(f"""\
96 f.write(code_fmt(f"""\
118 f.write(code_fmt(f"""\
124 f.write(code_fmt(f"""\
128 f.write(code_fmt(f"""\
133 f.write(textwrap.dedent(f"""\
[all …]
A Dcpu.c141 qemu_fprintf(f, " )\n"); in print_vreg()
166 qemu_fprintf(f, "0x%02x", in print_qreg()
171 qemu_fprintf(f, " )\n"); in print_qreg()
196 print_reg(f, env, i); in hexagon_dump()
198 print_reg(f, env, HEX_REG_SA0); in hexagon_dump()
202 print_reg(f, env, HEX_REG_M0); in hexagon_dump()
203 print_reg(f, env, HEX_REG_M1); in hexagon_dump()
206 print_reg(f, env, HEX_REG_GP); in hexagon_dump()
208 print_reg(f, env, HEX_REG_PC); in hexagon_dump()
224 qemu_fprintf(f, "}\n"); in hexagon_dump()
[all …]
A Dgen_analyze_funcs.py41 def gen_analyze_func(f, tag, regs, imms): argument
42 f.write(f"static void analyze_{tag}(DisasContext *ctx)\n")
43 f.write("{\n")
48 f.write(
51 f.write(" ctx_start_hvx_insn(ctx);\n")
53 f.write(
61 reg.decl_reg_num(f, regno)
68 reg.analyze_read(f, regno)
75 reg.analyze_write(f, tag, regno)
77 f.write("}\n\n")
[all …]
A Dgen_printinsn.py103 with open(sys.argv[-1], "w") as f:
126 f.write(f'{macname}({tag},"{beh}%s"')
138 f.write(f", insn->regno[{regno}]")
140 f.write(f", sreg2str(insn->regno[{regno}])")
142 f.write(f", creg2str(insn->regno[{regno}])")
144 f.write(f", insn->regno[{regno}] + 1" f", insn->regno[{regno}]")
157 f.write(',insn->extension_valid?"#":""')
159 f.write(',""')
168 f.write(',""')
170 f.write(f", insn->immed[{ii}]")
[all …]
/qemu/include/migration/
A Dqemu-file-types.h40 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/
A Dtest_b.S13 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 …]
A Dtest_bi.S7 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 …]
A Dtest_loop.S10 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 …]
A Dtest_bz.S7 _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/
A Dmtest2make.py72 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/tests/unit/
A Dtest-opts-visitor.c47 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/
A Dtest_patching.py32 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/tests/qemu-iotests/tests/
A Dvvfat51 "w", encoding="ascii") as f:
52 f.write(f"Hello, world! {i}\n")
58 f.write(bytes([0x41 + i] * 1024))
63 f.write(bytes([0x41 + i] * 1024))
142 with open(temp_file, "wb") as f:
143 f.write(data)
300 self.assertEqual(f.read(), new_content)
319 self.assertEqual(f.read(), new_content)
343 self.assertEqual(f.read(), new_content)
362 self.assertEqual(f.read(), new_content)
[all …]
/qemu/roms/
A Dedk2-build.py32 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/
A Dsha512.c264 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/
A Dcpu-dump.c28 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 …]

Completed in 672 milliseconds

12345678910>>...27