Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 25 of 276) sorted by relevance

12345678910>>...12

/qemu/ebpf/
H A Debpf_rss.c30 if (ctx != NULL) { in ebpf_rss_init()
31 ctx->obj = NULL; in ebpf_rss_init()
32 ctx->program_fd = -1; in ebpf_rss_init()
45 return ctx != NULL && (ctx->obj != NULL || ctx->program_fd != -1); in ebpf_rss_is_loaded()
120 ctx->obj = rss_bpf_ctx; in ebpf_rss_load()
137 ctx->obj = NULL; in ebpf_rss_load()
138 ctx->program_fd = -1; in ebpf_rss_load()
249 ebpf_rss_munmap(ctx); in ebpf_rss_unload()
251 if (ctx->obj) { in ebpf_rss_unload()
260 ctx->obj = NULL; in ebpf_rss_unload()
[all …]
/qemu/util/
H A Dasync.c74 AioContext *ctx = bh->ctx; in aio_bh_enqueue() local
134 .ctx = ctx, in aio_bh_schedule_oneshot_full()
148 .ctx = ctx, in aio_bh_new_full()
375 laio_detach_aio_context(ctx->linux_aio, ctx); in aio_ctx_finalize()
440 ctx->thread_pool = thread_pool_new(ctx); in aio_get_thread_pool()
451 laio_attach_aio_context(ctx->linux_aio, ctx); in aio_setup_linux_aio()
476 luring_attach_aio_context(ctx->linux_io_uring, ctx); in aio_setup_linux_io_uring()
592 ctx->co_schedule_bh = aio_bh_new(ctx, co_schedule_bh_cb, ctx); in aio_context_new()
595 aio_set_event_notifier(ctx, &ctx->notifier, in aio_context_new()
693 ctx = qatomic_read(&co->ctx); in aio_co_wake()
[all …]
H A Daio-posix.c169 ctx->fdmon_ops->update(ctx, node, new_node); in aio_set_fd_handler()
174 aio_notify(ctx); in aio_set_fd_handler()
588 if (max_ns && !ctx->fdmon_ops->need_wait(ctx)) { in try_poll_mode()
658 if (timeout || ctx->fdmon_ops->need_wait(ctx)) { in aio_poll()
670 ctx->fdmon_ops->wait(ctx, &ready_list, timeout); in aio_poll()
692 ctx->poll_ns /= ctx->poll_shrink; in aio_poll()
697 trace_poll_shrink(ctx, old, ctx->poll_ns); in aio_poll()
698 } else if (ctx->poll_ns < ctx->poll_max_ns && in aio_poll()
714 if (ctx->poll_ns > ctx->poll_max_ns) { in aio_poll()
715 ctx->poll_ns = ctx->poll_max_ns; in aio_poll()
[all …]
/qemu/target/riscv/insn_trans/
H A Dtrans_rvd.c.inc28 if (ctx->cfg_ptr->ext_zdinx && (get_xl(ctx) == MXL_RV32) && \
36 if (!has_ext(ctx, RVD) || !has_ext(ctx, RVC)) { \
49 decode_save_opc(ctx);
53 mark_fs_dirty(ctx);
64 decode_save_opc(ctx);
96 mark_fs_dirty(ctx);
114 mark_fs_dirty(ctx);
132 mark_fs_dirty(ctx);
150 mark_fs_dirty(ctx);
167 mark_fs_dirty(ctx);
[all …]
H A Dtrans_rvzfh.c.inc26 if (!ctx->cfg_ptr->ext_zhinx && !ctx->cfg_ptr->ext_zfh) { \
32 if (!ctx->cfg_ptr->ext_zfhmin && !ctx->cfg_ptr->ext_zfbfmin) { \
38 if (!(ctx->cfg_ptr->ext_zfhmin || ctx->cfg_ptr->ext_zhinxmin)) { \
51 decode_save_opc(ctx);
63 mark_fs_dirty(ctx);
100 mark_fs_dirty(ctx);
117 mark_fs_dirty(ctx);
134 mark_fs_dirty(ctx);
151 mark_fs_dirty(ctx);
167 mark_fs_dirty(ctx);
[all …]
H A Dtrans_rvzfa.c.inc34 REQUIRE_ZFA(ctx);
84 REQUIRE_ZFA(ctx);
133 REQUIRE_ZFA(ctx);
134 REQUIRE_ZFH(ctx);
183 REQUIRE_ZFA(ctx);
200 REQUIRE_ZFA(ctx);
217 REQUIRE_ZFA(ctx);
234 REQUIRE_ZFA(ctx);
251 REQUIRE_ZFA(ctx);
252 REQUIRE_ZFH(ctx);
[all …]
H A Dtrans_xthead.c.inc152 REQUIRE_64BIT(ctx);
153 ctx->ol = MXL_RV32;
238 REQUIRE_64BIT(ctx);
357 mark_fs_dirty(ctx);
446 REQUIRE_32BIT(ctx);
455 mark_fs_dirty(ctx);
462 REQUIRE_32BIT(ctx);
474 mark_fs_dirty(ctx);
515 ctx->ol = MXL_RV32;
523 REQUIRE_64BIT(ctx);
[all …]
H A Dtrans_rvf.c.inc23 ctx->virt_inst_excp = ctx->virt_enabled && ctx->cfg_ptr->ext_zfinx; \
36 if (!has_ext(ctx, RVF) || !has_ext(ctx, RVC)) { \
50 decode_save_opc(ctx);
56 mark_fs_dirty(ctx);
98 mark_fs_dirty(ctx);
115 mark_fs_dirty(ctx);
132 mark_fs_dirty(ctx);
149 mark_fs_dirty(ctx);
165 mark_fs_dirty(ctx);
181 mark_fs_dirty(ctx);
[all …]
H A Dtrans_rvk.c.inc65 REQUIRE_32BIT(ctx);
66 REQUIRE_ZKNE(ctx);
72 REQUIRE_32BIT(ctx);
73 REQUIRE_ZKNE(ctx);
80 REQUIRE_ZKND(ctx);
87 REQUIRE_ZKND(ctx);
94 REQUIRE_ZKNE(ctx);
101 REQUIRE_ZKNE(ctx);
108 REQUIRE_ZKND(ctx);
115 REQUIRE_ZKND(ctx);
[all …]
H A Dtrans_rvb.c.inc71 REQUIRE_ZBB(ctx);
87 REQUIRE_ZBB(ctx);
93 REQUIRE_ZBB(ctx);
117 REQUIRE_ZBB(ctx);
123 REQUIRE_ZBB(ctx);
129 REQUIRE_ZBB(ctx);
135 REQUIRE_ZBB(ctx);
141 REQUIRE_ZBB(ctx);
147 REQUIRE_ZBB(ctx);
167 REQUIRE_ZBS(ctx);
[all …]
H A Dtrans_rvbf16.c.inc40 REQUIRE_ZFBFMIN(ctx);
48 mark_fs_dirty(ctx);
55 REQUIRE_ZFBFMIN(ctx);
63 mark_fs_dirty(ctx);
72 if (opfv_narrow_check(ctx, a) && (ctx->sew == MO_16)) {
81 tcg_gen_gvec_3_ptr(vreg_ofs(ctx, a->rd), vreg_ofs(ctx, 0),
97 if (opfv_widen_check(ctx, a) && (ctx->sew == MO_16)) {
106 tcg_gen_gvec_3_ptr(vreg_ofs(ctx, a->rd), vreg_ofs(ctx, 0),
122 if (require_rvv(ctx) && vext_check_isa_ill(ctx) && (ctx->sew == MO_16) &&
132 tcg_gen_gvec_4_ptr(vreg_ofs(ctx, a->rd), vreg_ofs(ctx, 0),
[all …]
H A Dtrans_rva.c.inc22 if (!ctx->cfg_ptr->ext_zaamo && !has_ext(ctx, RVA)) { \
28 if (!ctx->cfg_ptr->ext_zalrsc && !has_ext(ctx, RVA)) { \
37 decode_save_opc(ctx);
64 decode_save_opc(ctx);
182 REQUIRE_64BIT(ctx);
189 REQUIRE_64BIT(ctx);
196 REQUIRE_64BIT(ctx);
203 REQUIRE_64BIT(ctx);
210 REQUIRE_64BIT(ctx);
217 REQUIRE_64BIT(ctx);
[all …]
/qemu/target/riscv/
H A Dtranslate.c122 static inline bool has_ext(DisasContext *ctx, uint32_t ext) in has_ext()
124 return ctx->misa_ext & ext;
128 #define get_xl(ctx) MXL_RV32
130 #define get_xl(ctx) MXL_RV64
132 #define get_xl(ctx) ((ctx)->xl)
136 #define get_address_xl(ctx) MXL_RV32
138 #define get_address_xl(ctx) MXL_RV64
140 #define get_address_xl(ctx) ((ctx)
119 has_ext(DisasContext * ctx,uint32_t ext) has_ext() argument
125 get_xl(ctx) global() argument
127 get_xl(ctx) global() argument
129 get_xl(ctx) global() argument
133 get_address_xl(ctx) global() argument
135 get_address_xl(ctx) global() argument
137 get_address_xl(ctx) global() argument
141 get_xlen(DisasContext * ctx) get_xlen() argument
148 get_ol(ctx) global() argument
150 get_ol(ctx) global() argument
153 get_olen(DisasContext * ctx) get_olen() argument
160 get_xl_max(ctx) global() argument
162 get_xl_max(ctx) global() argument
205 decode_save_opc(DisasContext * ctx) decode_save_opc() argument
212 gen_pc_plus_diff(TCGv target,DisasContext * ctx,target_long diff) gen_pc_plus_diff() argument
231 gen_update_pc(DisasContext * ctx,target_long diff) gen_update_pc() argument
237 generate_exception(DisasContext * ctx,int excp) generate_exception() argument
244 gen_exception_illegal(DisasContext * ctx) gen_exception_illegal() argument
255 gen_exception_inst_addr_mis(DisasContext * ctx,TCGv target) gen_exception_inst_addr_mis() argument
261 lookup_and_goto_ptr(DisasContext * ctx) lookup_and_goto_ptr() argument
271 exit_tb(DisasContext * ctx) exit_tb() argument
281 gen_goto_tb(DisasContext * ctx,int n,target_long diff) gen_goto_tb() argument
320 get_gpr(DisasContext * ctx,int reg_num,DisasExtend ext) get_gpr() argument
354 get_gprh(DisasContext * ctx,int reg_num) get_gprh() argument
363 dest_gpr(DisasContext * ctx,int reg_num) dest_gpr() argument
371 dest_gprh(DisasContext * ctx,int reg_num) dest_gprh() argument
379 gen_set_gpr(DisasContext * ctx,int reg_num,TCGv t) gen_set_gpr() argument
400 gen_set_gpri(DisasContext * ctx,int reg_num,target_long imm) gen_set_gpri() argument
421 gen_set_gpr128(DisasContext * ctx,int reg_num,TCGv rl,TCGv rh) gen_set_gpr128() argument
430 get_fpr_hs(DisasContext * ctx,int reg_num) get_fpr_hs() argument
457 get_fpr_d(DisasContext * ctx,int reg_num) get_fpr_d() argument
482 dest_fpr(DisasContext * ctx,int reg_num) dest_fpr() argument
505 gen_set_fpr_hs(DisasContext * ctx,int reg_num,TCGv_i64 t) gen_set_fpr_hs() argument
529 gen_set_fpr_d(DisasContext * ctx,int reg_num,TCGv_i64 t) gen_set_fpr_d() argument
556 gen_jal(DisasContext * ctx,int rd,target_ulong imm) gen_jal() argument
578 get_address(DisasContext * ctx,int rs1,int imm) get_address() argument
597 get_address_indexed(DisasContext * ctx,int rs1,TCGv offs) get_address_indexed() argument
619 mark_fs_dirty(DisasContext * ctx) mark_fs_dirty() argument
644 mark_fs_dirty(DisasContext * ctx) mark_fs_dirty() argument
652 mark_vs_dirty(DisasContext * ctx) mark_vs_dirty() argument
673 mark_vs_dirty(DisasContext * ctx) mark_vs_dirty() argument
676 finalize_rvv_inst(DisasContext * ctx) finalize_rvv_inst() argument
682 gen_set_rm(DisasContext * ctx,int rm) gen_set_rm() argument
699 gen_set_rm_chkfrm(DisasContext * ctx,int rm) gen_set_rm_chkfrm() argument
712 ex_plus_1(DisasContext * ctx,int nf) ex_plus_1() argument
728 REQUIRE_EXT(ctx,ext) global() argument
734 REQUIRE_32BIT(ctx) global() argument
740 REQUIRE_64BIT(ctx) global() argument
746 REQUIRE_128BIT(ctx) global() argument
752 REQUIRE_64_OR_128BIT(ctx) global() argument
758 REQUIRE_EITHER_EXT(ctx,A,B) global() argument
765 ex_rvc_register(DisasContext * ctx,int reg) ex_rvc_register() argument
770 ex_sreg_register(DisasContext * ctx,int reg) ex_sreg_register() argument
775 ex_rvc_shiftli(DisasContext * ctx,int imm) ex_rvc_shiftli() argument
784 ex_rvc_shiftri(DisasContext * ctx,int imm) ex_rvc_shiftri() argument
800 gen_logic_imm_fn(DisasContext * ctx,arg_i * a,void (* func)(TCGv,TCGv,target_long)) gen_logic_imm_fn() argument
821 gen_logic(DisasContext * ctx,arg_r * a,void (* func)(TCGv,TCGv,TCGv)) gen_logic() argument
844 gen_arith_imm_fn(DisasContext * ctx,arg_i * a,DisasExtend ext,void (* func)(TCGv,TCGv,target_long),void (* f128)(TCGv,TCGv,TCGv,TCGv,target_long)) gen_arith_imm_fn() argument
868 gen_arith_imm_tl(DisasContext * ctx,arg_i * a,DisasExtend ext,void (* func)(TCGv,TCGv,TCGv),void (* f128)(TCGv,TCGv,TCGv,TCGv,TCGv,TCGv)) gen_arith_imm_tl() argument
894 gen_arith(DisasContext * ctx,arg_r * a,DisasExtend ext,void (* func)(TCGv,TCGv,TCGv),void (* f128)(TCGv,TCGv,TCGv,TCGv,TCGv,TCGv)) gen_arith() argument
920 gen_arith_per_ol(DisasContext * ctx,arg_r * a,DisasExtend ext,void (* f_tl)(TCGv,TCGv,TCGv),void (* f_32)(TCGv,TCGv,TCGv),void (* f_128)(TCGv,TCGv,TCGv,TCGv,TCGv,TCGv)) gen_arith_per_ol() argument
937 gen_shift_imm_fn(DisasContext * ctx,arg_shift * a,DisasExtend ext,void (* func)(TCGv,TCGv,target_long),void (* f128)(TCGv,TCGv,TCGv,TCGv,target_long)) gen_shift_imm_fn() argument
967 gen_shift_imm_fn_per_ol(DisasContext * ctx,arg_shift * a,DisasExtend ext,void (* f_tl)(TCGv,TCGv,target_long),void (* f_32)(TCGv,TCGv,target_long),void (* f_128)(TCGv,TCGv,TCGv,TCGv,target_long)) gen_shift_imm_fn_per_ol() argument
985 gen_shift_imm_tl(DisasContext * ctx,arg_shift * a,DisasExtend ext,void (* func)(TCGv,TCGv,TCGv)) gen_shift_imm_tl() argument
1005 gen_shift(DisasContext * ctx,arg_r * a,DisasExtend ext,void (* func)(TCGv,TCGv,TCGv),void (* f128)(TCGv,TCGv,TCGv,TCGv,TCGv)) gen_shift() argument
1034 gen_shift_per_ol(DisasContext * ctx,arg_r * a,DisasExtend ext,void (* f_tl)(TCGv,TCGv,TCGv),void (* f_32)(TCGv,TCGv,TCGv),void (* f_128)(TCGv,TCGv,TCGv,TCGv,TCGv)) gen_shift_per_ol() argument
1050 gen_unary(DisasContext * ctx,arg_r2 * a,DisasExtend ext,void (* func)(TCGv,TCGv)) gen_unary() argument
1062 gen_unary_per_ol(DisasContext * ctx,arg_r2 * a,DisasExtend ext,void (* f_tl)(TCGv,TCGv),void (* f_32)(TCGv,TCGv)) gen_unary_per_ol() argument
1080 DisasContext *ctx = container_of(dcbase, DisasContext, base); opcode_at() local
1126 decode_opc(CPURISCVState * env,DisasContext * ctx,uint16_t opcode) decode_opc() argument
1174 DisasContext *ctx = container_of(dcbase, DisasContext, base); riscv_tr_init_disas_context() local
1216 DisasContext *ctx = container_of(dcbase, DisasContext, base); riscv_tr_insn_start() local
1229 DisasContext *ctx = container_of(dcbase, DisasContext, base); riscv_tr_translate_insn() local
1259 DisasContext *ctx = container_of(dcbase, DisasContext, base); riscv_tr_tb_stop() local
1283 DisasContext ctx; gen_intermediate_code() local
[all...]
/qemu/target/hppa/
H A Dtranslate.c730 install_iaq_entries(ctx, &ctx->iaq_f, &ctx->iaq_b); in gen_excp()
803 && (((ctx->iaoq_first + ctx->iaq_b.disp) ^ ctx->iaoq_first) in use_nullify_skip()
1881 ctx->iaq_j = iaqe_branchi(ctx, disp); in do_dbranch()
1895 ctx->iaq_n = &ctx->iaq_j; in do_dbranch()
1908 gen_goto_tb(ctx, 0, &ctx->iaq_b, &ctx->iaq_j); in do_dbranch()
2002 ctx->iaq_n = &ctx->iaq_j; in do_ibranch()
2015 install_iaq_entries(ctx, &ctx->iaq_b, &ctx->iaq_j); in do_ibranch()
2745 save_gpr(ctx, a->t, ctx->zero); in trans_lci()
3966 ctx->iaq_j.base = do_ibranch_priv(ctx, ctx->iaq_j.base); in trans_be()
4640 ctx->iaoq_first = ctx->base.pc_first + ctx->privilege; in hppa_tr_init_disas_context()
[all …]
/qemu/target/rx/
H A Ddisas.c42 ctx->dis->read_memory_func(addr++, &ctx->bytes[i - 1], 1, ctx->dis); in decode_load_bytes()
46 ctx->len = n; in decode_load_bytes()
61 ctx->dis->read_memory_func(addr, ctx->bytes + len, 1, ctx->dis); in li()
67 ctx->dis->read_memory_func(addr, ctx->bytes + len, 2, ctx->dis); in li()
73 ctx->dis->read_memory_func(addr, ctx->bytes + len, 3, ctx->dis); in li()
79 ctx->dis->read_memory_func(addr, ctx->bytes + len, 4, ctx->dis); in li()
110 ctx->dis->fprintf_func(ctx->dis->stream, "%02x ", ctx->bytes[i]); in dump_bytes()
155 ctx->dis->read_memory_func(addr, ctx->bytes + len, 1, ctx->dis); in rx_index_addr()
162 ctx->dis->read_memory_func(addr, ctx->bytes + len, 2, ctx->dis); in rx_index_addr()
1431 ctx.pc = ctx.addr = addr; in print_insn_rx()
[all …]
/qemu/target/hexagon/
H A Dtranslate.c88 ctx->future_vregs_num[ctx->future_vregs_idx + i] = regnum++; in ctx_future_vreg_off()
110 ctx->tmp_vregs_num[ctx->tmp_vregs_idx + i] = regnum++; in ctx_tmp_vreg_off()
164 gen_goto_tb(ctx, 0, ctx->branch_dest, true); in gen_end_tb()
166 gen_goto_tb(ctx, 1, ctx->next_PC, false); in gen_end_tb()
168 gen_goto_tb(ctx, 0, ctx->branch_dest, true); in gen_end_tb()
179 gen_goto_tb(ctx, 0, ctx->base.tb->pc, true); in gen_end_tb()
181 gen_goto_tb(ctx, 1, ctx->next_PC, false); in gen_end_tb()
383 if (ctx->read_after_write || ctx->has_hvx_overlap) { in need_commit()
421 ctx->need_commit = need_commit(ctx); in analyze_packet()
591 ctx->insn->generate(ctx); in gen_insn()
[all …]
H A Dtranslate.h86 ctx->preg_log[ctx->preg_log_idx] = pnum; in ctx_log_pred_write()
87 ctx->preg_log_idx++; in ctx_log_pred_write()
95 ctx->read_after_write = true; in ctx_log_pred_read()
113 ctx->reg_log[ctx->reg_log_idx] = rnum; in ctx_log_reg_write()
114 ctx->reg_log_idx++; in ctx_log_reg_write()
144 ctx_log_reg_read(ctx, rnum); in ctx_log_reg_read_pair()
145 ctx_log_reg_read(ctx, rnum + 1); in ctx_log_reg_read_pair()
174 ctx->vreg_log[ctx->vreg_log_idx] = rnum; in ctx_log_vreg_write()
175 ctx->vreg_log_idx++; in ctx_log_vreg_write()
252 ctx->qreg_log[ctx->qreg_log_idx] = rnum; in ctx_log_qreg_write()
[all …]
/qemu/target/ppc/
H A Dspr_common.h81 void spr_noaccess(DisasContext *ctx, int gprn, int sprn);
91 void spr_write_PMC(DisasContext *ctx, int sprn, int gprn);
93 void spr_read_xer(DisasContext *ctx, int gprn, int sprn);
94 void spr_write_xer(DisasContext *ctx, int sprn, int gprn);
95 void spr_read_lr(DisasContext *ctx, int gprn, int sprn);
96 void spr_write_lr(DisasContext *ctx, int sprn, int gprn);
97 void spr_read_ctr(DisasContext *ctx, int gprn, int sprn);
102 void spr_read_PMC(DisasContext *ctx, int gprn, int sprn);
105 void spr_read_tbl(DisasContext *ctx, int gprn, int sprn);
106 void spr_read_tbu(DisasContext *ctx, int gprn, int sprn);
[all …]
H A Dtranslate.c339 gen_exception_nip(ctx, excp, ctx->cia); in gen_exception()
1476 if (unlikely(ctx->pr || !ctx->hv)) {\
1488 if (unlikely(ctx->pr || !ctx->hv || ctx->dr)) { \
3654 gen_setlr(ctx, ctx->base.pc_next); in gen_b()
3692 gen_setlr(ctx, ctx->base.pc_next); in gen_bcond()
3767 gen_goto_tb(ctx, 0, ctx->cia + li); in gen_bcond()
3782 gen_goto_tb(ctx, 1, ctx->base.pc_next); in gen_bcond()
3956 gen_update_nip(ctx, ctx->cia); in gen_scv()
4196 gen_update_nip(ctx, ctx->base.pc_next); in gen_mtmsrd()
4886 gen_405_mulladd_insn(ctx, opc2, opc3, rA(ctx->opcode), rB(ctx->opcode), \
[all …]
/qemu/target/mips/tcg/
H A Dmips16e_translate.c.inc402 check_mips_64(ctx);
458 int extend = translator_lduw(env, &ctx->base, ctx->base.pc_next + 2);
462 ctx->opcode = (ctx->opcode << 16) | extend;
682 gen_addiupc(ctx, rx, ((uint8_t) ctx->opcode) << 2, 0, 0);
691 offset = translator_lduw(env, &ctx->base, ctx->base.pc_next + 2);
789 gen_st(ctx, OPC_SW, 31, 29, (ctx->opcode & 0xff) << 2);
864 gen_ld(ctx, OPC_LW, rx, 29, ((uint8_t)ctx->opcode) << 2);
876 gen_ld(ctx, OPC_LWPC, rx, 0, ((uint8_t)ctx->opcode) << 2);
892 gen_st(ctx, OPC_SW, rx, 29, ((uint8_t)ctx->opcode) << 2);
954 if (is_uhi(ctx, extract32(ctx->opcode, 5, 6))) {
[all …]
H A Dnanomips_translate.c.inc2309 ctx->btarget = addr_add(ctx, ctx->base.pc_next + 4, offset);
2387 gen_goto_tb(ctx, 0, ctx->btarget);
2394 gen_goto_tb(ctx, 1, ctx->btarget);
2397 gen_goto_tb(ctx, 0, ctx->base.pc_next + 4);
2446 ctx->btarget = addr_add(ctx, ctx->base.pc_next + 4, offset);
2458 ctx->btarget = addr_add(ctx, ctx->base.pc_next + 4, offset);
2461 ctx->btarget = addr_add(ctx, ctx->base.pc_next + 4, offset);
2468 ctx->btarget = addr_add(ctx, ctx->base.pc_next + 4, offset);
2489 gen_goto_tb(ctx, 0, ctx->btarget);
2563 gen_goto_tb(ctx, 1, ctx->btarget);
[all …]
H A Dtranslate.c1312 ctx->saved_pc = ctx->base.pc_next; in save_cpu_state()
1314 if (ctx->hflags != ctx->saved_hflags) { in save_cpu_state()
1316 ctx->saved_hflags = ctx->hflags; in save_cpu_state()
1331 ctx->saved_hflags = ctx->hflags; in restore_cpu_state()
11229 ctx->btarget = addr_add(ctx, ctx->base.pc_next + 4, offset); in gen_compute_compact_branch()
11240 ctx->btarget = addr_add(ctx, ctx->base.pc_next + 4, offset); in gen_compute_compact_branch()
11252 ctx->btarget = addr_add(ctx, ctx->base.pc_next + 4, offset); in gen_compute_compact_branch()
11256 ctx->btarget = addr_add(ctx, ctx->base.pc_next + 4, offset); in gen_compute_compact_branch()
11264 ctx->btarget = addr_add(ctx, ctx->base.pc_next + 4, offset); in gen_compute_compact_branch()
15250 gen_pcrel(ctx, ctx->opcode, ctx->base.pc_next, rs); in decode_opc_legacy()
[all …]
/qemu/target/ppc/translate/
H A Dspe-impl.c.inc325 if (rD(ctx->opcode) == rA(ctx->opcode)) {
622 gen_qemu_ld32u(ctx, cpu_gpr[rD(ctx->opcode)], addr);
680 gen_qemu_ld16u(ctx, cpu_gpr[rD(ctx->opcode)], addr);
687 gen_qemu_ld16s(ctx, cpu_gpr[rD(ctx->opcode)], addr);
719 gen_qemu_st32(ctx, cpu_gprh[rS(ctx->opcode)], addr);
721 gen_qemu_st32(ctx, cpu_gpr[rS(ctx->opcode)], addr);
730 gen_qemu_st16(ctx, cpu_gprh[rS(ctx->opcode)], addr);
735 gen_qemu_st16(ctx, cpu_gpr[rS(ctx->opcode)], addr);
750 gen_qemu_st16(ctx, cpu_gprh[rS(ctx->opcode)], addr);
752 gen_qemu_st16(ctx, cpu_gpr[rS(ctx->opcode)], addr);
[all …]
H A Dfp-impl.c.inc39 REQUIRE_FPU(ctx);
63 REQUIRE_FPU(ctx);
85 REQUIRE_FPU(ctx);
129 REQUIRE_FPU(ctx);
148 REQUIRE_FPU(ctx);
172 REQUIRE_FPU(ctx);
256 REQUIRE_FPU(ctx);
269 REQUIRE_FPU(ctx);
529 REQUIRE_FPU(ctx);
741 CHK_SV(ctx);
[all …]
/qemu/target/alpha/
H A Dtranslate.c166 if (!ctx->zero) { in load_zero()
182 if (ctx->sink) { in free_context_temps()
385 func(ctx, load_fpr(ctx, ra), addr); in gen_store_fp()
461 gen_pc_disp(ctx, ctx->ir[ra], 0); in gen_bdirect()
488 return gen_bcond_internal(ctx, cond, load_gpr(ctx, ra), in gen_bcond()
540 load_fpr(ctx, rb), load_fpr(ctx, rc)); in gen_fcmov()
2364 gen_pc_disp(ctx, ctx->ir[ra], 0); in translate_one()
2866 ctx->tbflags = ctx->base.tb->flags; in alpha_tr_init_disas_context()
2868 ctx->pcrel = ctx->base.tb->cflags & CF_PCREL; in alpha_tr_init_disas_context()
2895 ctx->base.max_insns = MIN(ctx->base.max_insns, bound); in alpha_tr_init_disas_context()
[all …]

12345678910>>...12