Home
last modified time | relevance | path

Searched refs:ppc_inst_t (Results 1 – 25 of 36) sorted by relevance

12

/linux-6.6.21/arch/powerpc/include/asm/
Dinst.h14 ppc_inst_t __gui_inst; \
41 static inline u32 ppc_inst_val(ppc_inst_t x) in ppc_inst_val()
46 #define ppc_inst(x) ((ppc_inst_t){ .val = (x) })
49 static inline u32 ppc_inst_val(ppc_inst_t x) in ppc_inst_val()
56 static inline int ppc_inst_primary_opcode(ppc_inst_t x) in ppc_inst_primary_opcode()
62 #define ppc_inst_prefix(x, y) ((ppc_inst_t){ .val = (x), .suffix = (y) })
64 static inline u32 ppc_inst_suffix(ppc_inst_t x) in ppc_inst_suffix()
72 static inline u32 ppc_inst_suffix(ppc_inst_t x) in ppc_inst_suffix()
79 static inline ppc_inst_t ppc_inst_read(const u32 *ptr) in ppc_inst_read()
87 static inline bool ppc_inst_prefixed(ppc_inst_t x) in ppc_inst_prefixed()
[all …]
Dcode-patching.h52 static inline int create_branch(ppc_inst_t *instr, const u32 *addr, in create_branch()
72 int create_cond_branch(ppc_inst_t *instr, const u32 *addr,
75 int patch_instruction(u32 *addr, ppc_inst_t instr);
76 int raw_patch_instruction(u32 *addr, ppc_inst_t instr);
83 static inline int patch_instruction_site(s32 *site, ppc_inst_t instr) in patch_instruction_site()
104 static inline unsigned int branch_opcode(ppc_inst_t instr) in branch_opcode()
109 static inline int instr_is_branch_iform(ppc_inst_t instr) in instr_is_branch_iform()
114 static inline int instr_is_branch_bform(ppc_inst_t instr) in instr_is_branch_bform()
119 int instr_is_relative_branch(ppc_inst_t instr);
120 int instr_is_relative_link_branch(ppc_inst_t instr);
[all …]
Dhw_breakpoint.h59 bool wp_check_constraints(struct pt_regs *regs, ppc_inst_t instr,
63 void wp_get_instr_detail(struct pt_regs *regs, ppc_inst_t *instr,
Dsstep.h148 ppc_inst_t instr);
165 int emulate_step(struct pt_regs *regs, ppc_inst_t instr);
Dreg.h1389 } __packed ppc_inst_t; typedef
1391 typedef u32 ppc_inst_t; typedef
/linux-6.6.21/arch/powerpc/kernel/trace/
Dftrace_64_pg.c40 static ppc_inst_t
43 ppc_inst_t op; in ftrace_call_replace()
54 ftrace_modify_code(unsigned long ip, ppc_inst_t old, ppc_inst_t new) in ftrace_modify_code()
56 ppc_inst_t replaced; in ftrace_modify_code()
91 static int is_bl_op(ppc_inst_t op) in is_bl_op()
96 static int is_b_op(ppc_inst_t op) in is_b_op()
101 static unsigned long find_bl_target(unsigned long ip, ppc_inst_t op) in find_bl_target()
120 ppc_inst_t op, pop; in __ftrace_make_nop()
256 ppc_inst_t op; in setup_mcount_compiler_tramp()
306 ppc_inst_t op; in __ftrace_make_nop_kernel()
[all …]
Dftrace.c34 static ppc_inst_t ftrace_create_branch_inst(unsigned long ip, unsigned long addr, int link) in ftrace_create_branch_inst()
36 ppc_inst_t op; in ftrace_create_branch_inst()
44 static inline int ftrace_read_inst(unsigned long ip, ppc_inst_t *op) in ftrace_read_inst()
54 static inline int ftrace_validate_inst(unsigned long ip, ppc_inst_t inst) in ftrace_validate_inst()
56 ppc_inst_t op; in ftrace_validate_inst()
69 static inline int ftrace_modify_code(unsigned long ip, ppc_inst_t old, ppc_inst_t new) in ftrace_modify_code()
79 static int is_bl_op(ppc_inst_t op) in is_bl_op()
97 static int ftrace_get_call_inst(struct dyn_ftrace *rec, unsigned long addr, ppc_inst_t *call_inst) in ftrace_get_call_inst()
137 ppc_inst_t old, new; in ftrace_make_call()
164 ppc_inst_t old, new, call_inst, new_call_inst; in ftrace_replace_code()
[all …]
/linux-6.6.21/arch/powerpc/lib/
Dcode-patching.c23 static int __patch_instruction(u32 *exec_addr, ppc_inst_t instr, u32 *patch_addr) in __patch_instruction()
44 int raw_patch_instruction(u32 *addr, ppc_inst_t instr) in raw_patch_instruction()
281 static int __do_patch_instruction_mm(u32 *addr, ppc_inst_t instr) in __do_patch_instruction_mm()
331 static int __do_patch_instruction(u32 *addr, ppc_inst_t instr) in __do_patch_instruction()
356 int patch_instruction(u32 *addr, ppc_inst_t instr) in patch_instruction()
383 ppc_inst_t instr; in patch_branch()
395 bool is_conditional_branch(ppc_inst_t instr) in is_conditional_branch()
413 int create_cond_branch(ppc_inst_t *instr, const u32 *addr, in create_cond_branch()
432 int instr_is_relative_branch(ppc_inst_t instr) in instr_is_relative_branch()
440 int instr_is_relative_link_branch(ppc_inst_t instr) in instr_is_relative_link_branch()
[all …]
Dtest-code-patching.c33 ppc_inst_t instr; in test_branch_iform()
115 ppc_inst_t instr; in test_create_function_call()
129 ppc_inst_t instr; in test_branch_bform()
207 ppc_inst_t instr; in test_translate_branch()
340 ppc_inst_t inst = ppc_inst_prefix(OP_PREFIX << 26, 0); in test_prefixed_patching()
Dtest_emulate_step.c792 ppc_inst_t instr; in test_plxvp_pstxvp()
906 ppc_inst_t instr;
1600 ppc_inst_t instr, in emulate_compute_instr()
1627 ppc_inst_t instr) in execute_compute_instr()
1658 ppc_inst_t instr; in run_tests_compute()
Dfeature-fixups.c50 ppc_inst_t instr; in patch_alt_instruction()
605 ppc_inst_t inst; in do_final_fixups()
/linux-6.6.21/arch/powerpc/xmon/
Dxmon_bpts.h8 #define BPT_SIZE (sizeof(ppc_inst_t) * 2)
9 #define BPT_WORDS (BPT_SIZE / sizeof(ppc_inst_t))
Dxmon.c125 static int mread_instr(unsigned long, ppc_inst_t *);
909 ppc_inst_t instr, instr2; in insert_bpts()
989 ppc_inst_t instr; in remove_bpts()
1205 ppc_inst_t instr; in do_step()
1459 ppc_inst_t instr; in check_bp_loc()
2304 mread_instr(unsigned long adrs, ppc_inst_t *instr) in mread_instr()
3028 ppc_inst_t inst, last_inst = ppc_inst(0); in generic_inst_dump()
/linux-6.6.21/arch/powerpc/kernel/
Dhw_breakpoint_constraints.c83 bool wp_check_constraints(struct pt_regs *regs, ppc_inst_t instr, in wp_check_constraints()
130 void wp_get_instr_detail(struct pt_regs *regs, ppc_inst_t *instr, in wp_get_instr_detail()
Depapr_paravirt.c40 ppc_inst_t inst = ppc_inst(be32_to_cpu(insts[i])); in early_init_dt_scan_epapr()
Doptprobes.c156 ppc_inst_t branch_op_callback, branch_emulate_step, temp; in arch_prepare_optimized_kprobe()
268 ppc_inst_t instr; in arch_optimize_kprobes()
Dalign.c108 ppc_inst_t ppc_instr) in emulate_spe()
303 ppc_inst_t instr; in fix_alignment()
Dsetup_32.c79 ppc_inst_t insn; in machine_init()
Dkprobes.c147 ppc_inst_t insn = ppc_inst_read(p->addr); in arch_prepare_kprobe()
258 ppc_inst_t insn = ppc_inst_read(p->ainsn.insn); in try_to_emulate()
Dhw_breakpoint.c284 int *hit, ppc_inst_t instr) in stepping_handler()
386 ppc_inst_t instr = ppc_inst(0); in hw_breakpoint_handler()
Dvecemu.c264 ppc_inst_t instr; in emulate_altivec()
Dmodule_32.c291 ppc_inst_t jmp[4]; in module_trampoline_target()
/linux-6.6.21/arch/powerpc/perf/
D8xx-pmu.c156 ppc_inst_t insn = ppc_inst(PPC_RAW_MFSPR(10, SPRN_SPRG_SCRATCH2)); in mpc8xx_pmu_del()
/linux-6.6.21/arch/powerpc/kvm/
Demulate.c197 ppc_inst_t pinst; in kvmppc_emulate_instruction()
Demulate_loadstore.c74 ppc_inst_t inst; in kvmppc_emulate_loadstore()

12