Home
last modified time | relevance | path

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

/openbmc/qemu/accel/tcg/
H A Dtranslate-all.c276 tcg_func_start(tcg_ctx); in setjmp_gen_code()
278 tcg_ctx->cpu = env_cpu(env); in setjmp_gen_code()
281 tcg_ctx->cpu = NULL; in setjmp_gen_code()
284 return tcg_gen_code(tcg_ctx, tb, pc); in setjmp_gen_code()
318 tb = tcg_tb_alloc(tcg_ctx); in tb_gen_code()
328 gen_code_buf = tcg_ctx->code_gen_ptr; in tb_gen_code()
340 tcg_ctx->gen_tb = tb; in tb_gen_code()
351 tcg_ctx->guest_mo = TCG_MO_ALL; in tb_gen_code()
374 tcg_ctx->gen_tb = NULL; in tb_gen_code()
421 tcg_ctx->gen_tb = NULL; in tb_gen_code()
[all …]
H A Dtranslator.c75 tcg_ctx->exitreq_label = NULL; in gen_tb_start()
77 tcg_ctx->exitreq_label = gen_new_label(); in gen_tb_start()
78 tcg_gen_brcondi_i32(TCG_COND_LT, count, 0, tcg_ctx->exitreq_label); in gen_tb_start()
109 if (tcg_ctx->exitreq_label) { in gen_tb_end()
110 gen_set_label(tcg_ctx->exitreq_label); in gen_tb_end()
296 struct qemu_plugin_insn *insn = tcg_ctx->plugin_insn; in plugin_insn_append()
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()
361 write_jr_code_load(start, tcg_ctx->gen_insn_end_off[tb->icount - 1], in perf_report_code()
H A Dplugin-gen.c231 QTAILQ_REMOVE_SEVERAL(&tcg_ctx->ops, begin, end, link); in rm_ops_range()
250 op = tcg_op_insert_after(tcg_ctx, op, old_op->opc, nargs); in copy_op_nocheck()
578 if (!tcg_ctx->plugin_tb->mem_helper) { in plugin_gen_disable_mem_helpers()
651 QTAILQ_FOREACH(op, &tcg_ctx->ops, link) { in pr_ops()
705 QTAILQ_FOREACH(op, &tcg_ctx->ops, link) { in plugin_gen_inject()
800 struct qemu_plugin_tb *ptb = tcg_ctx->plugin_tb; in plugin_gen_tb_start()
823 tcg_ctx->plugin_insn = NULL; in plugin_gen_tb_start()
830 struct qemu_plugin_tb *ptb = tcg_ctx->plugin_tb; in plugin_gen_insn_start()
834 tcg_ctx->plugin_insn = pinsn; in plugin_gen_insn_start()
868 struct qemu_plugin_tb *ptb = tcg_ctx->plugin_tb; in plugin_gen_tb_end()
H A Dcpu-exec.c556 if (tcg_ctx->gen_tb) { in cpu_exec_longjmp_cleanup()
557 tb_unlock_pages(tcg_ctx->gen_tb); in cpu_exec_longjmp_cleanup()
558 tcg_ctx->gen_tb = NULL; in cpu_exec_longjmp_cleanup()
H A Dtb-maint.c436 siglongjmp(tcg_ctx->jmp_trans, -3); in tb_lock_page1()
/openbmc/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 Dtcg.c238 __thread TCGContext *tcg_ctx; variable
358 TCGContext *s = tcg_ctx; in gen_new_label()
791 tcg_ctx = &tcg_init_ctx; in tcg_register_thread()
820 tcg_ctx = s; in tcg_register_thread()
1365 tcg_ctx = s; in tcg_context_init()
1373 tcg_ctxs = &tcg_ctx; in tcg_context_init()
1419 TCGContext *s = tcg_ctx; in tcg_prologue_init()
1583 TCGContext *s = tcg_ctx; in tcg_global_mem_new_internal()
1660 TCGContext *s = tcg_ctx; in tcg_temp_new_internal()
1799 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()
/openbmc/qemu/include/tcg/
H A Dtcg.h578 extern __thread TCGContext *tcg_ctx;
616 return ts - tcg_ctx->temps; in temp_idx()
626 return (void *)tcg_ctx + (uintptr_t)v; in tcgv_i32_temp()
678 return (TCGv_i32)((void *)t - (void *)tcg_ctx); in temp_tcgv_i32()
734 return QTAILQ_LAST(&tcg_ctx->ops); in tcg_last_op()
747 return tcg_ctx->nb_ops >= 4000; in tcg_op_buf_full()
771 TCGContext *s = tcg_ctx; in tcg_malloc()
780 return tcg_malloc_internal(tcg_ctx, size); in tcg_malloc()
1059 const TCGOpcode *o = tcg_ctx->vecop_list; in tcg_swap_vecop_list()
1060 tcg_ctx->vecop_list = n; in tcg_swap_vecop_list()
/openbmc/qemu/tcg/s390x/
H A Dtcg-target.c.inc1601 aa = atom_and_align_for_opc(tcg_ctx, memop, MO_ATOM_IFALIGN, true);
/openbmc/qemu/tcg/ppc/
H A Dtcg-target.c.inc2279 aa = atom_and_align_for_opc(tcg_ctx, memop, MO_ATOM_IFALIGN, true);
/openbmc/qemu/tcg/i386/
H A Dtcg-target.c.inc1837 aa = atom_and_align_for_opc(tcg_ctx, memop, MO_ATOM_IFALIGN, true);