Home
last modified time | relevance | path

Searched refs:ppc_inst (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.3-rc2/arch/powerpc/lib/
A Dtest_emulate_step.c922 .instr = ppc_inst(PPC_RAW_NOP()),
935 .instr = ppc_inst(PPC_RAW_SETB(20, 1)),
942 .instr = ppc_inst(PPC_RAW_SETB(20, 4)),
949 .instr = ppc_inst(PPC_RAW_SETB(20, 5)),
961 .instr = ppc_inst(PPC_RAW_ADD(20, 21, 22)),
969 .instr = ppc_inst(PPC_RAW_ADD(20, 21, 22)),
977 .instr = ppc_inst(PPC_RAW_ADD(20, 21, 22)),
985 .instr = ppc_inst(PPC_RAW_ADD(20, 21, 22)),
993 .instr = ppc_inst(PPC_RAW_ADD(20, 21, 22)),
1001 .instr = ppc_inst(PPC_RAW_ADD(20, 21, 22)),
[all …]
A Dtest-code-patching.c39 check(instr_is_branch_iform(ppc_inst(0x48000000))); in test_branch_iform()
57 ppc_inst_write(iptr, ppc_inst(0x48000103)); in test_branch_iform()
60 ppc_inst_write(iptr, ppc_inst(0x480420ff)); in test_branch_iform()
63 ppc_inst_write(iptr, ppc_inst(0x49fffffc)); in test_branch_iform()
66 ppc_inst_write(iptr, ppc_inst(0x4bfffffc)); in test_branch_iform()
69 ppc_inst_write(iptr, ppc_inst(0x4a000000)); in test_branch_iform()
146 ppc_inst_write(iptr, ppc_inst(0x43ff0103)); in test_branch_bform()
149 ppc_inst_write(iptr, ppc_inst(0x43ff20ff)); in test_branch_bform()
152 ppc_inst_write(iptr, ppc_inst(0x43ff7ffc)); in test_branch_bform()
155 ppc_inst_write(iptr, ppc_inst(0x43fffffc)); in test_branch_bform()
[all …]
A Dfeature-fixups.c95 raw_patch_instruction(dest, ppc_inst(PPC_RAW_NOP())); in patch_feature_section()
141 patch_instruction(dest + j, ppc_inst(instrs[j])); in do_patch_fixups()
163 patch_instruction(dest, ppc_inst(instrs[0])); in do_patch_entry_fixups()
164 patch_instruction(dest + 2, ppc_inst(instrs[2])); in do_patch_entry_fixups()
167 patch_instruction(dest + 1, ppc_inst(instrs[1])); in do_patch_entry_fixups()
168 patch_instruction(dest + 2, ppc_inst(instrs[2])); in do_patch_entry_fixups()
169 patch_instruction(dest, ppc_inst(instrs[0])); in do_patch_entry_fixups()
562 patch_instruction(start, ppc_inst(PPC_RAW_NOP())); in patch_btb_flush_section()
591 raw_patch_instruction(dest, ppc_inst(PPC_INST_LWSYNC)); in do_lwsync_fixups()
A Dcode-patching.c427 *instr = ppc_inst(0x40000000 | (flags & 0x3FF0003) | (offset & 0xFFFC)); in create_cond_branch()
/linux-6.3-rc2/arch/powerpc/include/asm/
A Dinst.h24 __gui_inst = ppc_inst(__prefix); \
46 #define ppc_inst(x) ((ppc_inst_t){ .val = (x) }) macro
53 #define ppc_inst(x) (x) macro
70 #define ppc_inst_prefix(x, y) ((void)y, ppc_inst(x))
84 return ppc_inst(*ptr); in ppc_inst_read()
155 *inst = ppc_inst(val); in __copy_inst_from_kernel_nofault()
A Dcode-patching.h57 *instr = ppc_inst(0); in create_branch()
67 *instr = ppc_inst(0x48000000 | (flags & 0x3) | (offset & 0x03FFFFFC)); in create_branch()
96 return patch_instruction(addr, ppc_inst((*addr & ~clr) | set)); in modify_instruction()
/linux-6.3-rc2/arch/powerpc/kernel/
A Doptprobes.c129 patch_instruction(addr++, ppc_inst(PPC_RAW_LIS(reg, PPC_HI(val)))); in patch_imm32_load_insns()
130 patch_instruction(addr, ppc_inst(PPC_RAW_ORI(reg, reg, PPC_LO(val)))); in patch_imm32_load_insns()
139 patch_instruction(addr++, ppc_inst(PPC_RAW_LIS(reg, PPC_HIGHEST(val)))); in patch_imm64_load_insns()
140 patch_instruction(addr++, ppc_inst(PPC_RAW_ORI(reg, reg, PPC_HIGHER(val)))); in patch_imm64_load_insns()
141 patch_instruction(addr++, ppc_inst(PPC_RAW_SLDI(reg, reg, 32))); in patch_imm64_load_insns()
142 patch_instruction(addr++, ppc_inst(PPC_RAW_ORIS(reg, reg, PPC_HI(val)))); in patch_imm64_load_insns()
143 patch_instruction(addr, ppc_inst(PPC_RAW_ORI(reg, reg, PPC_LO(val)))); in patch_imm64_load_insns()
195 rc = patch_instruction(buff + i, ppc_inst(*(optprobe_template_entry + i))); in arch_prepare_optimized_kprobe()
A Dstatic_call.c20 err = patch_instruction(tramp + PPC_SCT_DATA, ppc_inst(target)); in arch_static_call_transform()
26 err = patch_instruction(tramp, ppc_inst(PPC_RAW_BLR())); in arch_static_call_transform()
30 err = patch_instruction(tramp, ppc_inst(PPC_RAW_NOP())); in arch_static_call_transform()
A Dsecurity.c445 patch_instruction_site(site, ppc_inst(PPC_RAW_NOP())); in update_branch_cache_flush()
446 patch_instruction_site(site2, ppc_inst(PPC_RAW_NOP())); in update_branch_cache_flush()
456 patch_instruction_site(site, ppc_inst(PPC_RAW_NOP())); in update_branch_cache_flush()
458 patch_instruction_site(site, ppc_inst(PPC_RAW_NOP())); in update_branch_cache_flush()
460 patch_instruction_site(site, ppc_inst(PPC_RAW_NOP())); in update_branch_cache_flush()
471 patch_instruction_site(site, ppc_inst(0x39207fff)); // li r9,0x7fff in update_branch_cache_flush()
473 patch_instruction_site(site, ppc_inst(0x7d2903a6)); // mtctr r9 in update_branch_cache_flush()
475 patch_instruction_site(site, ppc_inst(PPC_INST_BCCTR_FLUSH)); in update_branch_cache_flush()
483 ppc_inst(PPC_RAW_BLR())); in update_branch_cache_flush()
488 ppc_inst(PPC_RAW_BLR())); in update_branch_cache_flush()
A Dmodule_32.c178 if (patch_instruction(&entry->jump[0], ppc_inst(PPC_RAW_LIS(_R12, PPC_HA(val))))) in do_plt_call()
180 if (patch_instruction(&entry->jump[1], ppc_inst(PPC_RAW_ADDI(_R12, _R12, PPC_LO(val))))) in do_plt_call()
182 if (patch_instruction(&entry->jump[2], ppc_inst(PPC_RAW_MTCTR(_R12)))) in do_plt_call()
184 if (patch_instruction(&entry->jump[3], ppc_inst(PPC_RAW_BCTR()))) in do_plt_call()
194 return patch_instruction(loc, ppc_inst((*loc & 0xffff0000) | value)); in patch_location_16()
262 if (patch_instruction(location, ppc_inst(value))) in apply_relocate_add()
A Dmodule_64.c437 ppc_inst(ppc64_stub_insns[i]))) in create_stub()
451 ppc_inst(entry->jump[0] | PPC_HA(reladdr)))) in create_stub()
455 ppc_inst(entry->jump[1] | PPC_LO(reladdr)))) in create_stub()
462 ppc_inst(((u32 *)(&desc))[i]))) in create_stub()
466 if (patch_instruction(&entry->magic, ppc_inst(STUB_MAGIC))) in create_stub()
515 if (!instr_is_relative_link_branch(ppc_inst(*prev_insn))) in restore_r2()
534 return patch_instruction(instruction, ppc_inst(PPC_INST_LD_TOC)); in restore_r2()
675 if (patch_instruction((u32 *)location, ppc_inst(value))) in apply_relocate_add()
A Djump_label.c19 patch_instruction(addr, ppc_inst(PPC_RAW_NOP())); in arch_jump_label_transform()
A Depapr_paravirt.c40 ppc_inst_t inst = ppc_inst(be32_to_cpu(insts[i])); in early_init_dt_scan_epapr()
A Dcrash_dump.c48 patch_instruction(p, ppc_inst(PPC_RAW_NOP())); in create_trampoline()
A Dsetup_32.c89 patch_instruction_site(&patch__memcpy_nocache, ppc_inst(PPC_RAW_NOP())); in machine_init()
A Dkprobes.c192 WARN_ON_ONCE(patch_instruction(p->addr, ppc_inst(BREAKPOINT_INSTRUCTION))); in arch_arm_kprobe()
198 WARN_ON_ONCE(patch_instruction(p->addr, ppc_inst(p->opcode))); in arch_disarm_kprobe()
A Dkgdb.c424 err = patch_instruction(addr, ppc_inst(BREAK_INSTR)); in kgdb_arch_set_breakpoint()
439 err = patch_instruction(addr, ppc_inst(instr)); in kgdb_arch_remove_breakpoint()
A Dhw_breakpoint_constraints.c100 if (unlikely(ppc_inst_equal(instr, ppc_inst(0)))) { in wp_check_constraints()
A Dhw_breakpoint.c646 ppc_inst_t instr = ppc_inst(0); in hw_breakpoint_handler()
675 ppc_inst_equal(instr, ppc_inst(0))) { in hw_breakpoint_handler()
/linux-6.3-rc2/arch/powerpc/kernel/trace/
A Dftrace.c160 if (!ppc_inst_equal(op, ppc_inst(PPC_RAW_MFLR(_R0))) && in __ftrace_make_nop()
161 !ppc_inst_equal(op, ppc_inst(PPC_INST_STD_LR))) { in __ftrace_make_nop()
176 if (!ppc_inst_equal(op, ppc_inst(PPC_INST_LD_TOC))) { in __ftrace_make_nop()
199 pop = ppc_inst(PPC_RAW_NOP()); in __ftrace_make_nop()
201 pop = ppc_inst(PPC_RAW_BRANCH(8)); /* b +8 */ in __ftrace_make_nop()
356 new = ppc_inst(PPC_RAW_NOP()); in ftrace_make_nop()
397 return ppc_inst_equal(op0, ppc_inst(PPC_RAW_NOP())); in expected_nop_sequence()
399 return ppc_inst_equal(op0, ppc_inst(PPC_RAW_BRANCH(8))) && in expected_nop_sequence()
400 ppc_inst_equal(op1, ppc_inst(PPC_INST_LD_TOC)); in expected_nop_sequence()
489 if (!ppc_inst_equal(op, ppc_inst(PPC_RAW_NOP()))) { in __ftrace_make_call_kernel()
[all …]
/linux-6.3-rc2/arch/powerpc/platforms/86xx/
A Dmpc86xx_smp.c86 patch_instruction(vector, ppc_inst(save_vector)); in smp_86xx_kick_cpu()
/linux-6.3-rc2/arch/powerpc/perf/
A D8xx-pmu.c156 ppc_inst_t insn = ppc_inst(PPC_RAW_MFSPR(10, SPRN_SPRG_SCRATCH2)); in mpc8xx_pmu_del()
/linux-6.3-rc2/arch/powerpc/kvm/
A Demulate_loadstore.c96 if (analyse_instr(&op, &vcpu->arch.regs, ppc_inst(inst)) == 0) { in kvmppc_emulate_loadstore()
/linux-6.3-rc2/arch/powerpc/platforms/powermac/
A Dsmp.c828 patch_instruction(vector, ppc_inst(save_vector)); in smp_core99_kick_cpu()
/linux-6.3-rc2/arch/powerpc/xmon/
A Dxmon.c952 ppc_inst(bpinstr)); in insert_bpts()
956 ppc_inst(bpinstr)) != 0) { in insert_bpts()
995 && ppc_inst_equal(instr, ppc_inst(bpinstr)) in remove_bpts()
3025 ppc_inst_t inst, last_inst = ppc_inst(0); in generic_inst_dump()

Completed in 75 milliseconds

12