Home
last modified time | relevance | path

Searched refs:loongarch_instruction (Results 1 – 17 of 17) sorted by relevance

/linux-6.12.1/arch/loongarch/kernel/
Dalternative.c34 union loongarch_instruction *_buf = buf; \
47 static void __init_or_module add_nops(union loongarch_instruction *insn, int count) in add_nops()
61 static void __init_or_module recompute_jump(union loongarch_instruction *buf, in recompute_jump()
62 union loongarch_instruction *dest, union loongarch_instruction *src, in recompute_jump()
126 static int __init_or_module copy_alt_insns(union loongarch_instruction *buf, in copy_alt_insns()
127 union loongarch_instruction *dest, union loongarch_instruction *src, int nr) in copy_alt_insns()
157 static void *__init_or_module text_poke_early(union loongarch_instruction *insn, in text_poke_early()
158 union loongarch_instruction *buf, unsigned int nr) in text_poke_early()
187 union loongarch_instruction *instr, *replacement; in apply_alternatives()
188 union loongarch_instruction insnbuf[MAX_PATCH_SIZE]; in apply_alternatives()
Dinst.c13 void simu_pc(struct pt_regs *regs, union loongarch_instruction insn) in simu_pc()
46 void simu_branch(struct pt_regs *regs, union loongarch_instruction insn) in simu_branch()
136 bool insns_not_supported(union loongarch_instruction insn) in insns_not_supported()
162 bool insns_need_simulation(union loongarch_instruction insn) in insns_need_simulation()
173 void arch_simulate_insn(union loongarch_instruction insn, struct pt_regs *regs) in arch_simulate_insn()
229 union loongarch_instruction insn; in larch_insn_gen_b()
244 union loongarch_instruction insn; in larch_insn_gen_bl()
258 union loongarch_instruction insn; in larch_insn_gen_break()
272 union loongarch_instruction insn; in larch_insn_gen_or()
286 union loongarch_instruction insn; in larch_insn_gen_lu12iw()
[all …]
Dftrace.c30 union loongarch_instruction *insn; in ftrace_get_parent_ra_addr()
32 insn = (union loongarch_instruction *)insn_addr; in ftrace_get_parent_ra_addr()
Dunwind_prologue.c117 union loongarch_instruction *ip, *ip_end; in unwind_by_prologue()
140 ip = (union loongarch_instruction *)(pc - offset); in unwind_by_prologue()
141 ip_end = (union loongarch_instruction *)pc; in unwind_by_prologue()
Dmodule.c171 union loongarch_instruction *insn = (union loongarch_instruction *)location; in apply_r_larch_sop_imm_field()
284 union loongarch_instruction *insn = (union loongarch_instruction *)location; in apply_r_larch_b26()
316 union loongarch_instruction *insn = (union loongarch_instruction *)location; in apply_r_larch_pcala()
Duprobes.c14 union loongarch_instruction insn; in arch_uprobe_analyze_insn()
86 union loongarch_instruction insn; in arch_uprobe_skip_sstep()
Dkprobes.c29 union loongarch_instruction insn; in arch_prepare_kprobe()
158 union loongarch_instruction insn; in setup_singlestep()
Dtraps.c619 union loongarch_instruction insn; in do_bce()
800 union loongarch_instruction *ip = (union loongarch_instruction *)pc; in do_watch()
Drelocate.c72 union loongarch_instruction *insn = (void *)p->pc; in relocate_absolute()
Dkgdb.c299 union loongarch_instruction *ip = (union loongarch_instruction *)pc; in get_step_address()
Dunaligned.c256 union loongarch_instruction insn; in emulate_load_store_insn()
/linux-6.12.1/arch/loongarch/include/asm/
Dinst.h355 union loongarch_instruction { union
373 #define LOONGARCH_INSN_SIZE sizeof(union loongarch_instruction)
417 static inline bool is_break_ins(union loongarch_instruction *ip) in is_break_ins()
422 static inline bool is_pc_ins(union loongarch_instruction *ip) in is_pc_ins()
428 static inline bool is_branch_ins(union loongarch_instruction *ip) in is_branch_ins()
434 static inline bool is_ra_save_ins(union loongarch_instruction *ip) in is_ra_save_ins()
443 static inline bool is_stack_alloc_ins(union loongarch_instruction *ip) in is_stack_alloc_ins()
452 static inline bool is_self_loop_ins(union loongarch_instruction *ip, struct pt_regs *regs) in is_self_loop_ins()
490 void simu_pc(struct pt_regs *regs, union loongarch_instruction insn);
491 void simu_branch(struct pt_regs *regs, union loongarch_instruction insn);
[all …]
Dkvm_vcpu.h39 typedef union loongarch_instruction larch_inst;
/linux-6.12.1/tools/objtool/arch/loongarch/
Ddecode.c78 static bool decode_insn_reg0i26_fomat(union loongarch_instruction inst, in decode_insn_reg0i26_fomat()
99 static bool decode_insn_reg1i21_fomat(union loongarch_instruction inst, in decode_insn_reg1i21_fomat()
117 static bool decode_insn_reg2i12_fomat(union loongarch_instruction inst, in decode_insn_reg2i12_fomat()
185 static bool decode_insn_reg2i14_fomat(union loongarch_instruction inst, in decode_insn_reg2i14_fomat()
229 static bool decode_insn_reg2i16_fomat(union loongarch_instruction inst, in decode_insn_reg2i16_fomat()
291 union loongarch_instruction inst; in arch_decode_instruction()
303 inst = *(union loongarch_instruction *)(sec->data->d_buf + offset); in arch_decode_instruction()
348 emit_jirl((union loongarch_instruction *)&ret, LOONGARCH_GPR_RA, LOONGARCH_GPR_ZERO, 0); in arch_ret_insn()
/linux-6.12.1/tools/arch/loongarch/include/asm/
Dinst.h99 union loongarch_instruction { union
110 #define LOONGARCH_INSN_SIZE sizeof(union loongarch_instruction)
148 static inline void emit_##NAME(union loongarch_instruction *insn, \
/linux-6.12.1/arch/loongarch/net/
Dbpf_jit.h20 union loongarch_instruction *image;
33 union loongarch_instruction *insn = &ctx->image[ctx->idx]; \
Dbpf_jit.c1166 union loongarch_instruction insn; in validate_code()
1266 ctx.image = (union loongarch_instruction *)image_ptr; in bpf_int_jit_compile()