Home
last modified time | relevance | path

Searched refs:ppc_inst_val (Results 1 – 12 of 12) sorted by relevance

/Linux-v6.1/arch/powerpc/include/asm/
Dinst.h41 static inline u32 ppc_inst_val(ppc_inst_t x) in ppc_inst_val() function
49 static inline u32 ppc_inst_val(ppc_inst_t x) in ppc_inst_val() function
58 return ppc_inst_val(x) >> 26; in ppc_inst_primary_opcode()
94 return ppc_inst_prefix(swab32(ppc_inst_val(x)), swab32(ppc_inst_suffix(x))); in ppc_inst_swab()
99 if (ppc_inst_val(x) != ppc_inst_val(y)) in ppc_inst_equal()
127 return ppc_inst_val(x); in ppc_inst_as_ulong()
129 return (u64)ppc_inst_suffix(x) << 32 | ppc_inst_val(x); in ppc_inst_as_ulong()
131 return (u64)ppc_inst_val(x) << 32 | ppc_inst_suffix(x); in ppc_inst_as_ulong()
137 *ptr = ppc_inst_val(x); in ppc_inst_write()
Dsstep.h19 #define IS_MTMSRD(instr) ((ppc_inst_val(instr) & 0xfc0007be) == 0x7c000124)
20 #define IS_RFID(instr) ((ppc_inst_val(instr) & 0xfc0007be) == 0x4c000024)
/Linux-v6.1/arch/powerpc/lib/
Dcode-patching.c21 u32 val = ppc_inst_val(instr); in __patch_instruction()
236 switch ((ppc_inst_val(instr) >> 1) & 0x3ff) { in is_conditional_branch()
268 if (ppc_inst_val(instr) & BRANCH_ABSOLUTE) in instr_is_relative_branch()
276 return instr_is_relative_branch(instr) && (ppc_inst_val(instr) & BRANCH_SET_LINK); in instr_is_relative_link_branch()
283 imm = ppc_inst_val(ppc_inst_read(instr)) & 0x3FFFFFC; in branch_iform_target()
289 if ((ppc_inst_val(ppc_inst_read(instr)) & BRANCH_ABSOLUTE) == 0) in branch_iform_target()
299 imm = ppc_inst_val(ppc_inst_read(instr)) & 0xFFFC; in branch_bform_target()
305 if ((ppc_inst_val(ppc_inst_read(instr)) & BRANCH_ABSOLUTE) == 0) in branch_bform_target()
328 ppc_inst_val(ppc_inst_read(src))); in translate_branch()
331 ppc_inst_val(ppc_inst_read(src))); in translate_branch()
Dtest_emulate_step.c1606 if (!regs || !ppc_inst_val(instr)) in emulate_compute_instr()
1631 if (!regs || !ppc_inst_val(instr)) in execute_compute_instr()
Dsstep.c1358 word = ppc_inst_val(instr); in analyse_instr()
/Linux-v6.1/arch/powerpc/kernel/
Dmodule_32.c305 if ((ppc_inst_val(jmp[0]) & 0xffff0000) != PPC_RAW_LIS(_R12, 0)) in module_trampoline_target()
307 if ((ppc_inst_val(jmp[1]) & 0xffff0000) != PPC_RAW_ADDI(_R12, _R12, 0)) in module_trampoline_target()
309 if (ppc_inst_val(jmp[2]) != PPC_RAW_MTCTR(_R12)) in module_trampoline_target()
311 if (ppc_inst_val(jmp[3]) != PPC_RAW_BCTR()) in module_trampoline_target()
314 addr = (ppc_inst_val(jmp[1]) & 0xffff) | ((ppc_inst_val(jmp[0]) & 0xffff) << 16); in module_trampoline_target()
Dalign.c120 instr = ppc_inst_val(ppc_instr); in emulate_spe()
323 int reg = (ppc_inst_val(instr) >> 21) & 0x1f; in fix_alignment()
340 if ((ppc_inst_val(instr) & 0xfc0006fe) == (PPC_INST_COPY & 0xfc0006fe)) in fix_alignment()
Duprobes.c51 if (!can_single_step(ppc_inst_val(ppc_inst_read(auprobe->insn)))) { in arch_uprobe_analyze_insn()
Dkprobes.c153 } else if (!can_single_step(ppc_inst_val(insn))) { in arch_prepare_kprobe()
185 p->opcode = ppc_inst_val(insn); in arch_prepare_kprobe()
Dvecemu.c272 word = ppc_inst_val(instr); in emulate_altivec()
/Linux-v6.1/arch/powerpc/kernel/trace/
Dftrace.c93 return (ppc_inst_val(op) & ~PPC_LI_MASK) == PPC_RAW_BL(0); in is_bl_op()
98 return (ppc_inst_val(op) & ~PPC_LI_MASK) == PPC_RAW_BRANCH(0); in is_b_op()
105 offset = PPC_LI(ppc_inst_val(op)); in find_bl_target()
/Linux-v6.1/arch/powerpc/xmon/
Dxmon.c923 if (!can_single_step(ppc_inst_val(instr))) { in insert_bpts()
1471 if (!can_single_step(ppc_inst_val(instr))) { in check_bp_loc()
3053 dump_func(ppc_inst_val(inst), adr); in generic_inst_dump()