Home
last modified time | relevance | path

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

/qemu/accel/tcg/
H A Dtranslate-all.c275 tcg_func_start(tcg_ctx); in setjmp_gen_code()
277 tcg_ctx->cpu = env_cpu(env); in setjmp_gen_code()
280 tcg_ctx->cpu = NULL; in setjmp_gen_code()
283 return tcg_gen_code(tcg_ctx, tb, pc); in setjmp_gen_code()
317 tb = tcg_tb_alloc(tcg_ctx); in tb_gen_code()
327 gen_code_buf = tcg_ctx->code_gen_ptr; in tb_gen_code()
341 tcg_ctx->gen_tb = tb; in tb_gen_code()
352 tcg_ctx->guest_mo = TCG_MO_ALL; in tb_gen_code()
375 tcg_ctx->gen_tb = NULL; in tb_gen_code()
422 tcg_ctx->gen_tb = NULL; in tb_gen_code()
[all …]
H A Dplugin-gen.c43 if (tcg_ctx->plugin_insn) { in plugin_gen_disable_mem_helpers()
280 memset(tcg_ctx->free_temps, 0, sizeof(tcg_ctx->free_temps)); in plugin_gen_inject()
299 tcg_ctx->emit_before_op = op; in plugin_gen_inject()
342 tcg_op_remove(tcg_ctx, op); in plugin_gen_inject()
360 tcg_ctx->emit_before_op = op; in plugin_gen_inject()
369 tcg_op_remove(tcg_ctx, op); in plugin_gen_inject()
389 tcg_ctx->plugin_db = db; in plugin_gen_tb_start()
390 tcg_ctx->plugin_insn = NULL; in plugin_gen_tb_start()
391 ptb = tcg_ctx->plugin_tb; in plugin_gen_tb_start()
402 tcg_ctx->plugin_tb = ptb; in plugin_gen_tb_start()
[all …]
H A Dtranslator.c72 tcg_ctx->exitreq_label = NULL; in gen_tb_start()
74 tcg_ctx->exitreq_label = gen_new_label(); in gen_tb_start()
75 tcg_gen_brcondi_i32(TCG_COND_LT, count, 0, tcg_ctx->exitreq_label); in gen_tb_start()
99 if (tcg_ctx->exitreq_label) { in gen_tb_end()
100 gen_set_label(tcg_ctx->exitreq_label); in gen_tb_end()
210 tcg_ctx->emit_before_op = first_insn_start; in translator_loop()
213 tcg_ctx->emit_before_op = db->insn_start; in translator_loop()
215 tcg_ctx->emit_before_op = NULL; in translator_loop()
H A Dcpu-exec.c560 if (tcg_ctx->gen_tb) { in cpu_exec_longjmp_cleanup()
561 tb_unlock_pages(tcg_ctx->gen_tb); in cpu_exec_longjmp_cleanup()
562 tcg_ctx->gen_tb = NULL; in cpu_exec_longjmp_cleanup()
H A Dtb-maint.c437 siglongjmp(tcg_ctx->jmp_trans, -3); in tb_lock_page1()
/qemu/tcg/
H A Dtcg-op-ldst.c82 if (!(tcg_ctx->gen_tb->cflags & CF_PARALLEL)) { in tcg_canonicalize_memop()
126 type &= tcg_ctx->guest_mo; in tcg_gen_req_mo()
137 if (tcg_ctx->plugin_insn != NULL) { in plugin_maybe_preserve_addr()
140 if (tcg_ctx->addr_type == TCG_TYPE_I32) { in plugin_maybe_preserve_addr()
156 if (tcg_ctx->plugin_insn != NULL) { in plugin_gen_mem_callbacks()
159 if (tcg_ctx->addr_type == TCG_TYPE_I32) { in plugin_gen_mem_callbacks()
200 if (tcg_ctx->addr_type == TCG_TYPE_I32) { in tcg_gen_qemu_ld_i32_int()
321 if (tcg_ctx->addr_type == TCG_TYPE_I32) { in tcg_gen_qemu_ld_i64_int()
393 if (tcg_ctx->addr_type == TCG_TYPE_I32) { in tcg_gen_qemu_st_i64_int()
490 if (tcg_ctx->addr_type == TCG_TYPE_I32) { in maybe_extend_addr64()
[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()
332 start_words = tcg_ctx->insn_start_words; in perf_report_code()
357 write_jr_code_load(start, tcg_ctx->gen_insn_end_off[tb->icount - 1], in perf_report_code()
H A Dtcg.c239 __thread TCGContext *tcg_ctx; variable
359 TCGContext *s = tcg_ctx; in gen_new_label()
783 tcg_ctx = &tcg_init_ctx; in tcg_register_thread()
811 tcg_ctx = s; in tcg_register_thread()
1354 tcg_ctx = s; in tcg_context_init()
1362 tcg_ctxs = &tcg_ctx; in tcg_context_init()
1408 TCGContext *s = tcg_ctx; in tcg_prologue_init()
1573 TCGContext *s = tcg_ctx; in tcg_global_mem_new_internal()
1650 TCGContext *s = tcg_ctx; in tcg_temp_new_internal()
1789 TCGContext *s = tcg_ctx; in tcg_temp_free_internal()
[all …]
H A Dtcg-op.c299 bool parallel = tcg_ctx->gen_tb->cflags & CF_PARALLEL; in tcg_gen_mb()
3308 tcg_debug_assert(tcg_ctx->goto_tb_issue_mask & (1 << idx)); in tcg_gen_exit_tb()
3321 tcg_debug_assert(!(tcg_ctx->gen_tb->cflags & CF_NO_GOTO_TB)); in tcg_gen_goto_tb()
3326 tcg_debug_assert((tcg_ctx->goto_tb_issue_mask & (1 << idx)) == 0); in tcg_gen_goto_tb()
3327 tcg_ctx->goto_tb_issue_mask |= 1 << idx; in tcg_gen_goto_tb()
3337 if (tcg_ctx->gen_tb->cflags & CF_NO_GOTO_PTR) { in tcg_gen_lookup_and_goto_ptr()
H A Dtcg-op-vec.c48 const TCGOpcode *p = tcg_ctx->vecop_list; in tcg_assert_listed_vecop()
/qemu/include/tcg/
H A Dtcg.h582 extern __thread TCGContext *tcg_ctx;
620 return ts - tcg_ctx->temps; in temp_idx()
630 return (void *)tcg_ctx + (uintptr_t)v; in tcgv_i32_temp()
682 return (TCGv_i32)((void *)t - (void *)tcg_ctx); in temp_tcgv_i32()
738 return QTAILQ_LAST(&tcg_ctx->ops); in tcg_last_op()
751 return tcg_ctx->nb_ops >= 4000; in tcg_op_buf_full()
775 TCGContext *s = tcg_ctx; in tcg_malloc()
784 return tcg_malloc_internal(tcg_ctx, size); in tcg_malloc()
1066 const TCGOpcode *o = tcg_ctx->vecop_list; in tcg_swap_vecop_list()
1067 tcg_ctx->vecop_list = n; in tcg_swap_vecop_list()
/qemu/plugins/
H A Dapi.c92 return tb_cflags(tcg_ctx->gen_tb) & CF_MEMI_ONLY; in tb_is_mem_only()
242 const DisasContextBase *db = tcg_ctx->plugin_db; in qemu_plugin_tb_vaddr()
267 const DisasContextBase *db = tcg_ctx->plugin_db; in qemu_plugin_insn_data()
285 const DisasContextBase *db = tcg_ctx->plugin_db; in qemu_plugin_insn_haddr()
313 return plugin_disas(tcg_ctx->cpu, tcg_ctx->plugin_db, in qemu_plugin_insn_disas()
/qemu/tcg/s390x/
H A Dtcg-target.c.inc1692 aa = atom_and_align_for_opc(tcg_ctx, memop, MO_ATOM_IFALIGN, true);
/qemu/tcg/ppc/
H A Dtcg-target.c.inc2428 aa = atom_and_align_for_opc(tcg_ctx, memop, MO_ATOM_IFALIGN, true);
/qemu/tcg/i386/
H A Dtcg-target.c.inc1951 aa = atom_and_align_for_opc(tcg_ctx, memop, MO_ATOM_IFALIGN, true);