/openbmc/qemu/accel/tcg/ |
H A D | translate-all.c | 130 uint8_t *highwater = tcg_ctx->code_gen_highwater; in encode_search() 131 uint64_t *insn_data = tcg_ctx->gen_insn_data; in encode_search() 132 uint16_t *insn_end_off = tcg_ctx->gen_insn_end_off; in encode_search() 270 int ret = sigsetjmp(tcg_ctx->jmp_trans, 0); in setjmp_gen_code() 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() [all …]
|
H A D | plugin-gen.c | 43 if (tcg_ctx->plugin_insn) { in plugin_gen_disable_mem_helpers() 263 && qemu_log_in_addr_range(tcg_ctx->plugin_db->pc_first))) { in plugin_gen_inject() 267 tcg_dump_ops(tcg_ctx, logfile, false); in plugin_gen_inject() 278 tcg_temp_ebb_reset_freed(tcg_ctx); in plugin_gen_inject() 280 QTAILQ_FOREACH_SAFE(op, &tcg_ctx->ops, link, next) { in plugin_gen_inject() 297 tcg_ctx->emit_before_op = op; in plugin_gen_inject() 339 tcg_ctx->emit_before_op = NULL; in plugin_gen_inject() 340 tcg_op_remove(tcg_ctx, op); in plugin_gen_inject() 358 tcg_ctx->emit_before_op = op; in plugin_gen_inject() 366 tcg_ctx->emit_before_op = NULL; in plugin_gen_inject() [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() 209 tcg_ctx->emit_before_op = first_insn_start; in translator_loop() 212 tcg_ctx->emit_before_op = db->insn_start; in translator_loop() 214 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 | 42 tcg_debug_assert(a_bits + 5 <= tcg_ctx->page_bits); in check_max_alignment() 82 if (!(tcg_ctx->gen_tb->cflags & CF_PARALLEL)) { in tcg_canonicalize_memop() 93 if (TCG_TARGET_REG_BITS == 64 || tcg_ctx->addr_type == TCG_TYPE_I32) { in gen_ldst() 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() 184 if (tcg_ctx->plugin_insn != NULL) { in plugin_gen_mem_callbacks_i32() 199 if (tcg_ctx->plugin_insn != NULL) { in plugin_gen_mem_callbacks_i64() [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() 1407 TCGContext *s = tcg_ctx; in tcg_prologue_init() 1572 TCGContext *s = tcg_ctx; in tcg_global_mem_new_internal() 1649 TCGContext *s = tcg_ctx; in tcg_temp_new_internal() 1788 TCGContext *s = tcg_ctx; in tcg_temp_free_internal() [all …]
|
H A D | tcg-op.c | 305 bool parallel = tcg_ctx->gen_tb->cflags & CF_PARALLEL; in tcg_gen_mb() 3316 tcg_debug_assert(tcg_ctx->goto_tb_issue_mask & (1 << idx)); in tcg_gen_exit_tb() 3329 tcg_debug_assert(!(tcg_ctx->gen_tb->cflags & CF_NO_GOTO_TB)); in tcg_gen_goto_tb() 3334 tcg_debug_assert((tcg_ctx->goto_tb_issue_mask & (1 << idx)) == 0); in tcg_gen_goto_tb() 3335 tcg_ctx->goto_tb_issue_mask |= 1 << idx; in tcg_gen_goto_tb() 3345 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 | 565 extern __thread TCGContext *tcg_ctx; 603 return ts - tcg_ctx->temps; in temp_idx() 613 return (void *)tcg_ctx + (uintptr_t)v; in tcgv_i32_temp() 665 return (TCGv_i32)((void *)t - (void *)tcg_ctx); in temp_tcgv_i32() 721 return QTAILQ_LAST(&tcg_ctx->ops); in tcg_last_op() 734 return tcg_ctx->nb_ops >= 4000; in tcg_op_buf_full() 758 TCGContext *s = tcg_ctx; in tcg_malloc() 767 return tcg_malloc_internal(tcg_ctx, size); in tcg_malloc() 1049 const TCGOpcode *o = tcg_ctx->vecop_list; in tcg_swap_vecop_list() 1050 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/target/riscv/ |
H A D | translate.c | 1296 tcg_ctx->emit_before_op = QTAILQ_NEXT(ctx->base.insn_start, link); in riscv_tr_translate_insn() 1301 tcg_ctx->emit_before_op = NULL; in riscv_tr_translate_insn()
|
/openbmc/qemu/tcg/s390x/ |
H A D | tcg-target.c.inc | 1705 aa = atom_and_align_for_opc(tcg_ctx, memop, MO_ATOM_IFALIGN, true);
|
/openbmc/qemu/tcg/ppc/ |
H A D | tcg-target.c.inc | 2429 aa = atom_and_align_for_opc(tcg_ctx, memop, MO_ATOM_IFALIGN, true);
|
/openbmc/qemu/tcg/i386/ |
H A D | tcg-target.c.inc | 1999 aa = atom_and_align_for_opc(tcg_ctx, memop, MO_ATOM_IFALIGN, true);
|