Home
last modified time | relevance | path

Searched refs:ppc_inst_read (Results 1 – 11 of 11) sorted by relevance

/linux-6.12.1/arch/powerpc/lib/
Dtest-code-patching.c13 if (instr_is_branch_iform(ppc_inst_read(instr)) || in instr_is_branch_to_addr()
14 instr_is_branch_bform(ppc_inst_read(instr))) in instr_is_branch_to_addr()
236 check(ppc_inst_equal(ppc_inst_read(q), ppc_inst(0x4a000000))); in test_translate_branch()
248 check(ppc_inst_equal(ppc_inst_read(q), ppc_inst(0x49fffffc))); in test_translate_branch()
296 check(ppc_inst_equal(ppc_inst_read(q), ppc_inst(0x43ff8000))); in test_translate_branch()
308 check(ppc_inst_equal(ppc_inst_read(q), ppc_inst(0x43ff7ffc))); in test_translate_branch()
383 check(ppc_inst_equal(ppc_inst_read((u32 *)&addr64[1]), inst64)); in test_multi_instruction_patching()
384 check(ppc_inst_equal(ppc_inst_read((u32 *)&addr64[2]), inst64)); in test_multi_instruction_patching()
385 check(ppc_inst_equal(ppc_inst_read((u32 *)&addr64[3]), inst64)); in test_multi_instruction_patching()
420 check(ppc_inst_equal(ppc_inst_read((u32 *)&addr64[1]), inst64)); in test_multi_instruction_patching()
[all …]
Dcode-patching.c444 ppc_inst_t instr = ppc_inst_read(code); in __patch_instructions()
644 imm = ppc_inst_val(ppc_inst_read(instr)) & 0x3FFFFFC; in branch_iform_target()
650 if ((ppc_inst_val(ppc_inst_read(instr)) & BRANCH_ABSOLUTE) == 0) in branch_iform_target()
660 imm = ppc_inst_val(ppc_inst_read(instr)) & 0xFFFC; in branch_bform_target()
666 if ((ppc_inst_val(ppc_inst_read(instr)) & BRANCH_ABSOLUTE) == 0) in branch_bform_target()
674 if (instr_is_branch_iform(ppc_inst_read(instr))) in branch_target()
676 else if (instr_is_branch_bform(ppc_inst_read(instr))) in branch_target()
687 if (instr_is_branch_iform(ppc_inst_read(src))) in translate_branch()
689 ppc_inst_val(ppc_inst_read(src))); in translate_branch()
690 else if (instr_is_branch_bform(ppc_inst_read(src))) in translate_branch()
[all …]
Dfeature-fixups.c59 instr = ppc_inst_read(src); in patch_alt_instruction()
61 if (instr_is_relative_branch(ppc_inst_read(src))) { in patch_alt_instruction()
623 inst = ppc_inst_read(src); in do_final_fixups()
/linux-6.12.1/arch/powerpc/kernel/
Duprobes.c45 ppc_inst_prefixed(ppc_inst_read(auprobe->insn)) && in arch_uprobe_analyze_insn()
51 if (!can_single_step(ppc_inst_val(ppc_inst_read(auprobe->insn)))) { in arch_uprobe_analyze_insn()
190 ret = emulate_step(regs, ppc_inst_read(auprobe->insn)); in arch_uprobe_skip_sstep()
Dkprobes.c133 ppc_inst_t insn = ppc_inst_read(p->addr); in arch_prepare_kprobe()
142 ppc_inst_prefixed(ppc_inst_read(p->addr - 1))) { in arch_prepare_kprobe()
153 ppc_inst_prefixed(ppc_inst_read(prev->ainsn.insn))) { in arch_prepare_kprobe()
234 ppc_inst_t insn = ppc_inst_read(p->ainsn.insn); in try_to_emulate()
404 len = ppc_inst_len(ppc_inst_read(cur->ainsn.insn)); in kprobe_post_handler()
Doptprobes.c87 if (!is_conditional_branch(ppc_inst_read(p->ainsn.insn)) && in can_optimize()
88 analyse_instr(&op, &regs, ppc_inst_read(p->ainsn.insn)) == 1) { in can_optimize()
231 temp = ppc_inst_read(p->ainsn.insn); in arch_prepare_optimized_kprobe()
Dmce_power.c466 instr = ppc_inst_read((u32 *)instr_addr); in mce_find_instr_ea_and_phys()
/linux-6.12.1/arch/powerpc/include/asm/
Dinst.h79 static inline ppc_inst_t ppc_inst_read(const u32 *ptr) in ppc_inst_read() function
119 tmp = ppc_inst_read(value); in ppc_inst_next()
/linux-6.12.1/arch/powerpc/kernel/trace/
Dftrace.c305 old = ppc_inst_read((u32 *)&ftrace_call); in ftrace_update_ftrace_func()
312 old = ppc_inst_read((u32 *)&ftrace_regs_call); in ftrace_update_ftrace_func()
Dftrace_64_pg.c689 old = ppc_inst_read((u32 *)&ftrace_call); in ftrace_update_ftrace_func()
696 old = ppc_inst_read((u32 *)&ftrace_regs_call); in ftrace_update_ftrace_func()
/linux-6.12.1/arch/powerpc/xmon/
Dxmon.c714 int stepped = emulate_step(regs, ppc_inst_read(bp->instr)); in xmon_core()
720 IS_RFID(ppc_inst_read(bp->instr))? "rfid": "mtmsrd"); in xmon_core()
942 if (bp2 && ppc_inst_prefixed(ppc_inst_read(bp2->instr))) { in insert_bpts()
996 (u32 *)bp->address, ppc_inst_read(bp->instr)) != 0) in remove_bpts()
2310 *instr = ppc_inst_read((u32 *)adrs); in mread_instr()