Searched refs:tcg_ctx (Results 1 – 15 of 15) sorted by relevance
/openbmc/qemu/accel/tcg/ |
H A D | translate-all.c | 275 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 D | plugin-gen.c | 43 if (tcg_ctx->plugin_insn) { in plugin_gen_disable_mem_helpers() 279 memset(tcg_ctx->free_temps, 0, sizeof(tcg_ctx->free_temps)); in plugin_gen_inject() 298 tcg_ctx->emit_before_op = op; in plugin_gen_inject() 341 tcg_op_remove(tcg_ctx, op); in plugin_gen_inject() 359 tcg_ctx->emit_before_op = op; in plugin_gen_inject() 368 tcg_op_remove(tcg_ctx, op); in plugin_gen_inject() 388 tcg_ctx->plugin_db = db; in plugin_gen_tb_start() 389 tcg_ctx->plugin_insn = NULL; in plugin_gen_tb_start() 390 ptb = tcg_ctx->plugin_tb; in plugin_gen_tb_start() 401 tcg_ctx->plugin_tb = ptb; in plugin_gen_tb_start() [all …]
|
H A D | translator.c | 72 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 D | cpu-exec.c | 557 if (tcg_ctx->gen_tb) { in cpu_exec_longjmp_cleanup() 558 tb_unlock_pages(tcg_ctx->gen_tb); in cpu_exec_longjmp_cleanup() 559 tcg_ctx->gen_tb = NULL; in cpu_exec_longjmp_cleanup()
|
H A D | tb-maint.c | 437 siglongjmp(tcg_ctx->jmp_trans, -3); in tb_lock_page1()
|
/openbmc/qemu/tcg/ |
H A D | tcg-op-ldst.c | 82 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 D | perf.c | 65 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 D | tcg.c | 239 __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 D | tcg-op.c | 299 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 D | tcg-op-vec.c | 48 const TCGOpcode *p = tcg_ctx->vecop_list; in tcg_assert_listed_vecop()
|
/openbmc/qemu/include/tcg/ |
H A D | tcg.h | 582 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()
|
/openbmc/qemu/plugins/ |
H A D | api.c | 95 return tb_cflags(tcg_ctx->gen_tb) & CF_MEMI_ONLY; in tb_is_mem_only() 245 const DisasContextBase *db = tcg_ctx->plugin_db; in qemu_plugin_tb_vaddr() 270 const DisasContextBase *db = tcg_ctx->plugin_db; in qemu_plugin_insn_data() 288 const DisasContextBase *db = tcg_ctx->plugin_db; in qemu_plugin_insn_haddr() 316 return plugin_disas(tcg_ctx->cpu, tcg_ctx->plugin_db, in qemu_plugin_insn_disas()
|
/openbmc/qemu/tcg/s390x/ |
H A D | tcg-target.c.inc | 1692 aa = atom_and_align_for_opc(tcg_ctx, memop, MO_ATOM_IFALIGN, true);
|
/openbmc/qemu/tcg/i386/ |
H A D | tcg-target.c.inc | 1951 aa = atom_and_align_for_opc(tcg_ctx, memop, MO_ATOM_IFALIGN, true);
|
/openbmc/qemu/tcg/ppc/ |
H A D | tcg-target.c.inc | 2427 aa = atom_and_align_for_opc(tcg_ctx, memop, MO_ATOM_IFALIGN, true);
|