Searched refs:ppc_inst_read (Results 1 – 11 of 11) sorted by relevance
/linux-6.12.1/arch/powerpc/lib/ |
D | test-code-patching.c | 13 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 …]
|
D | code-patching.c | 444 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 …]
|
D | feature-fixups.c | 59 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/ |
D | uprobes.c | 45 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()
|
D | kprobes.c | 133 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()
|
D | optprobes.c | 87 if (!is_conditional_branch(ppc_inst_read(p->ainsn.insn)) && in can_optimize() 88 analyse_instr(&op, ®s, ppc_inst_read(p->ainsn.insn)) == 1) { in can_optimize() 231 temp = ppc_inst_read(p->ainsn.insn); in arch_prepare_optimized_kprobe()
|
D | mce_power.c | 466 instr = ppc_inst_read((u32 *)instr_addr); in mce_find_instr_ea_and_phys()
|
/linux-6.12.1/arch/powerpc/include/asm/ |
D | inst.h | 79 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/ |
D | ftrace.c | 305 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()
|
D | ftrace_64_pg.c | 689 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/ |
D | xmon.c | 714 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()
|