Searched refs:ppc_inst_val (Results 1 – 10 of 10) sorted by relevance
53 static inline u32 ppc_inst_val(struct ppc_inst x) in ppc_inst_val() function60 return ppc_inst_val(x) >> 26; in ppc_inst_primary_opcode()98 return ppc_inst_prefix(swab32(ppc_inst_val(x)), swab32(ppc_inst_suffix(x))); in ppc_inst_swab()103 if (ppc_inst_val(x) != ppc_inst_val(y)) in ppc_inst_equal()131 return ppc_inst_val(x); in ppc_inst_as_ulong()133 return (u64)ppc_inst_suffix(x) << 32 | ppc_inst_val(x); in ppc_inst_as_ulong()135 return (u64)ppc_inst_val(x) << 32 | ppc_inst_suffix(x); in ppc_inst_as_ulong()143 sprintf(str, "%08x %08x", ppc_inst_val(x), ppc_inst_suffix(x)); in __ppc_inst_as_str()145 sprintf(str, "%08x", ppc_inst_val(x)); in __ppc_inst_as_str()
19 #define IS_MTMSRD(instr) ((ppc_inst_val(instr) & 0xfc0007be) == 0x7c000124)20 #define IS_RFID(instr) ((ppc_inst_val(instr) & 0xfc0007be) == 0x4c000024)
24 u32 val = ppc_inst_val(instr); in __patch_instruction()247 switch ((ppc_inst_val(instr) >> 1) & 0x3ff) { in is_conditional_branch()314 if (ppc_inst_val(instr) & BRANCH_ABSOLUTE) in instr_is_relative_branch()322 return instr_is_relative_branch(instr) && (ppc_inst_val(instr) & BRANCH_SET_LINK); in instr_is_relative_link_branch()329 imm = ppc_inst_val(ppc_inst_read(instr)) & 0x3FFFFFC; in branch_iform_target()335 if ((ppc_inst_val(ppc_inst_read(instr)) & BRANCH_ABSOLUTE) == 0) in branch_iform_target()345 imm = ppc_inst_val(ppc_inst_read(instr)) & 0xFFFC; in branch_bform_target()351 if ((ppc_inst_val(ppc_inst_read(instr)) & BRANCH_ABSOLUTE) == 0) in branch_bform_target()374 ppc_inst_val(ppc_inst_read(src))); in translate_branch()377 ppc_inst_val(ppc_inst_read(src))); in translate_branch()
1609 if (!regs || !ppc_inst_val(instr)) in emulate_compute_instr()1634 if (!regs || !ppc_inst_val(instr)) in execute_compute_instr()
1369 word = ppc_inst_val(instr); in analyse_instr()
120 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()
272 word = ppc_inst_val(instr); in emulate_altivec()
158 p->opcode = ppc_inst_val(insn); in arch_prepare_kprobe()
102 return (ppc_inst_val(op) & 0xfc000003) == 0x48000001; in is_bl_op()107 return (ppc_inst_val(op) & 0xfc000003) == 0x48000000; in is_b_op()114 offset = (ppc_inst_val(op) & 0x03fffffc); in find_bl_target()504 (ppc_inst_val(op1) & 0xffff0000) != 0xe8410000) in expected_nop_sequence()
3048 dump_func(ppc_inst_val(inst), adr); in generic_inst_dump()
Completed in 23 milliseconds