/linux-6.3-rc2/arch/powerpc/lib/ |
A D | test_emulate_step.c | 922 .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 D | test-code-patching.c | 39 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 D | feature-fixups.c | 95 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 D | code-patching.c | 427 *instr = ppc_inst(0x40000000 | (flags & 0x3FF0003) | (offset & 0xFFFC)); in create_cond_branch()
|
/linux-6.3-rc2/arch/powerpc/include/asm/ |
A D | inst.h | 24 __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 D | code-patching.h | 57 *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 D | optprobes.c | 129 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 D | static_call.c | 20 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 D | security.c | 445 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 D | module_32.c | 178 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 D | module_64.c | 437 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 D | jump_label.c | 19 patch_instruction(addr, ppc_inst(PPC_RAW_NOP())); in arch_jump_label_transform()
|
A D | epapr_paravirt.c | 40 ppc_inst_t inst = ppc_inst(be32_to_cpu(insts[i])); in early_init_dt_scan_epapr()
|
A D | crash_dump.c | 48 patch_instruction(p, ppc_inst(PPC_RAW_NOP())); in create_trampoline()
|
A D | setup_32.c | 89 patch_instruction_site(&patch__memcpy_nocache, ppc_inst(PPC_RAW_NOP())); in machine_init()
|
A D | kprobes.c | 192 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 D | kgdb.c | 424 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 D | hw_breakpoint_constraints.c | 100 if (unlikely(ppc_inst_equal(instr, ppc_inst(0)))) { in wp_check_constraints()
|
A D | hw_breakpoint.c | 646 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 D | ftrace.c | 160 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 D | mpc86xx_smp.c | 86 patch_instruction(vector, ppc_inst(save_vector)); in smp_86xx_kick_cpu()
|
/linux-6.3-rc2/arch/powerpc/perf/ |
A D | 8xx-pmu.c | 156 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 D | emulate_loadstore.c | 96 if (analyse_instr(&op, &vcpu->arch.regs, ppc_inst(inst)) == 0) { in kvmppc_emulate_loadstore()
|
/linux-6.3-rc2/arch/powerpc/platforms/powermac/ |
A D | smp.c | 828 patch_instruction(vector, ppc_inst(save_vector)); in smp_core99_kick_cpu()
|
/linux-6.3-rc2/arch/powerpc/xmon/ |
A D | xmon.c | 952 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()
|