Home
last modified time | relevance | path

Searched refs:tcg_ctx (Results 1 – 16 of 16) sorted by relevance

/qemu/accel/tcg/
H A Dplugin-gen.c42 if (tcg_ctx->plugin_insn) { in plugin_gen_disable_mem_helpers()
269 && qemu_log_in_addr_range(tcg_ctx->plugin_db->pc_first))) { in plugin_gen_inject()
273 tcg_dump_ops(tcg_ctx, logfile, false); in plugin_gen_inject()
284 tcg_temp_ebb_reset_freed(tcg_ctx); in plugin_gen_inject()
286 QTAILQ_FOREACH_SAFE(op, &tcg_ctx->ops, link, next) { in plugin_gen_inject()
303 tcg_ctx->emit_before_op = op; in plugin_gen_inject()
345 tcg_ctx->emit_before_op = NULL; in plugin_gen_inject()
346 tcg_op_remove(tcg_ctx, op); in plugin_gen_inject()
364 tcg_ctx->emit_before_op = op; in plugin_gen_inject()
372 tcg_ctx->emit_before_op = NULL; in plugin_gen_inject()
[all …]
H A Dtranslate-all.c102 uint8_t *highwater = tcg_ctx->code_gen_highwater; in encode_search()
103 uint64_t *insn_data = tcg_ctx->gen_insn_data; in encode_search()
104 uint16_t *insn_end_off = tcg_ctx->gen_insn_end_off; in encode_search()
242 int ret = sigsetjmp(tcg_ctx->jmp_trans, 0); in setjmp_gen_code()
247 tcg_func_start(tcg_ctx); in setjmp_gen_code()
250 tcg_ctx->cpu = cs; in setjmp_gen_code()
254 tcg_ctx->cpu = NULL; in setjmp_gen_code()
257 return tcg_gen_code(tcg_ctx, tb, pc); in setjmp_gen_code()
289 tb = tcg_tb_alloc(tcg_ctx); in tb_gen_code()
299 gen_code_buf = tcg_ctx->code_gen_ptr; in tb_gen_code()
[all …]
H A Dtranslator.c73 tcg_ctx->exitreq_label = NULL; in gen_tb_start()
75 tcg_ctx->exitreq_label = gen_new_label(); in gen_tb_start()
76 tcg_gen_brcondi_i32(TCG_COND_LT, count, 0, tcg_ctx->exitreq_label); in gen_tb_start()
100 if (tcg_ctx->exitreq_label) { in gen_tb_end()
101 gen_set_label(tcg_ctx->exitreq_label); in gen_tb_end()
216 tcg_ctx->emit_before_op = first_insn_start; in translator_loop()
219 tcg_ctx->emit_before_op = db->insn_start; in translator_loop()
221 tcg_ctx->emit_before_op = NULL; in translator_loop()
H A Dcpu-exec.c537 if (tcg_ctx->gen_tb) { in cpu_exec_longjmp_cleanup()
538 tb_unlock_pages(tcg_ctx->gen_tb); in cpu_exec_longjmp_cleanup()
539 tcg_ctx->gen_tb = NULL; in cpu_exec_longjmp_cleanup()
H A Dtb-maint.c438 siglongjmp(tcg_ctx->jmp_trans, -3); in tb_lock_page1()
/qemu/tcg/
H A Dtcg-op-ldst.c84 if (!(tcg_ctx->gen_tb->cflags & CF_PARALLEL)) { in tcg_canonicalize_memop()
131 type &= tcg_ctx->guest_mo; in tcg_gen_req_mo()
142 if (tcg_ctx->plugin_insn != NULL) { in plugin_maybe_preserve_addr()
145 if (tcg_ctx->addr_type == TCG_TYPE_I32) { in plugin_maybe_preserve_addr()
161 if (tcg_ctx->plugin_insn != NULL) { in plugin_gen_mem_callbacks()
164 if (tcg_ctx->addr_type == TCG_TYPE_I32) { in plugin_gen_mem_callbacks()
189 if (tcg_ctx->plugin_insn != NULL) { in plugin_gen_mem_callbacks_i32()
204 if (tcg_ctx->plugin_insn != NULL) { in plugin_gen_mem_callbacks_i64()
219 if (tcg_ctx->plugin_insn != NULL) { in plugin_gen_mem_callbacks_i128()
275 tcg_debug_assert(addr_type == tcg_ctx->addr_type); in tcg_gen_qemu_ld_i32_chk()
[all …]
H A Dperf.c65 uint16_t start_off = insn ? tcg_ctx->gen_insn_end_off[insn - 1] : 0; in get_host_pc_size()
71 *host_size = tcg_ctx->gen_insn_end_off[insn] - start_off; in get_host_pc_size()
281 ent.addr = (uintptr_t)start + tcg_ctx->gen_insn_end_off[icount - 1]; in write_jr_code_debug_info()
331 gen_insn_data = tcg_ctx->gen_insn_data; in perf_report_code()
356 write_jr_code_load(start, tcg_ctx->gen_insn_end_off[tb->icount - 1], in perf_report_code()
H A Dtcg.c248 __thread TCGContext *tcg_ctx; variable
368 TCGContext *s = tcg_ctx; in gen_new_label()
1285 tcg_ctx = &tcg_init_ctx; in tcg_register_thread()
1313 tcg_ctx = s; in tcg_register_thread()
1836 tcg_ctx = s; in tcg_context_init()
1844 tcg_ctxs = &tcg_ctx; in tcg_context_init()
1889 TCGContext *s = tcg_ctx; in tcg_prologue_init()
2047 TCGContext *s = tcg_ctx; in tcg_global_mem_new_internal()
2124 TCGContext *s = tcg_ctx; in tcg_temp_new_internal()
2263 TCGContext *s = tcg_ctx; in tcg_temp_free_internal()
[all …]
H A Dtcg-op.c300 bool parallel = tcg_ctx->gen_tb->cflags & CF_PARALLEL; in tcg_gen_mb()
3237 tcg_debug_assert(tcg_ctx->goto_tb_issue_mask & (1 << idx)); in tcg_gen_exit_tb()
3250 tcg_debug_assert(!(tcg_ctx->gen_tb->cflags & CF_NO_GOTO_TB)); in tcg_gen_goto_tb()
3255 tcg_debug_assert((tcg_ctx->goto_tb_issue_mask & (1 << idx)) == 0); in tcg_gen_goto_tb()
3256 tcg_ctx->goto_tb_issue_mask |= 1 << idx; in tcg_gen_goto_tb()
3266 if (tcg_ctx->gen_tb->cflags & CF_NO_GOTO_PTR) { in tcg_gen_lookup_and_goto_ptr()
H A Dtcg-op-vec.c49 const TCGOpcode *p = tcg_ctx->vecop_list; in tcg_assert_listed_vecop()
/qemu/include/tcg/
H A Dtcg.h467 extern __thread TCGContext *tcg_ctx;
505 return ts - tcg_ctx->temps; in temp_idx()
515 return (void *)tcg_ctx + (uintptr_t)v; in tcgv_i32_temp()
567 return (TCGv_i32)((void *)t - (void *)tcg_ctx); in temp_tcgv_i32()
630 return QTAILQ_LAST(&tcg_ctx->ops); in tcg_last_op()
643 return tcg_ctx->nb_ops >= 4000; in tcg_op_buf_full()
708 TCGContext *s = tcg_ctx; in tcg_malloc()
717 return tcg_malloc_internal(tcg_ctx, size); in tcg_malloc()
998 const TCGOpcode *o = tcg_ctx->vecop_list; in tcg_swap_vecop_list()
999 tcg_ctx->vecop_list = n; in tcg_swap_vecop_list()
/qemu/plugins/
H A Dapi.c83 return tb_cflags(tcg_ctx->gen_tb) & CF_MEMI_ONLY; in tb_is_mem_only()
233 const DisasContextBase *db = tcg_ctx->plugin_db; in qemu_plugin_tb_vaddr()
256 const DisasContextBase *db = tcg_ctx->plugin_db; in qemu_plugin_insn_data()
274 const DisasContextBase *db = tcg_ctx->plugin_db; in qemu_plugin_insn_haddr()
302 return plugin_disas(tcg_ctx->cpu, tcg_ctx->plugin_db, in qemu_plugin_insn_disas()
/qemu/target/riscv/
H A Dtranslate.c1337 tcg_ctx->emit_before_op = QTAILQ_NEXT(ctx->base.insn_start, link); in riscv_tr_translate_insn()
1342 tcg_ctx->emit_before_op = NULL; in riscv_tr_translate_insn()
/qemu/tcg/s390x/
H A Dtcg-target.c.inc1824 aa = atom_and_align_for_opc(tcg_ctx, memop, MO_ATOM_IFALIGN, true);
/qemu/tcg/ppc/
H A Dtcg-target.c.inc2385 aa = atom_and_align_for_opc(tcg_ctx, memop, MO_ATOM_IFALIGN, true);
/qemu/tcg/i386/
H A Dtcg-target.c.inc2022 aa = atom_and_align_for_opc(tcg_ctx, memop, MO_ATOM_IFALIGN, true);