Home
last modified time | relevance | path

Searched refs:opcode (Results 1 – 25 of 157) sorted by relevance

1234567

/arch/arm/nwfpe/
Dfpopcode.h204 #define getCoprocessorNumber(opcode) ((opcode & MASK_COPROCESSOR) >> 8) argument
207 #define getOffset(opcode) (opcode & MASK_OFFSET) argument
210 #define TEST_OPCODE(opcode,mask) (((opcode) & (mask)) == (mask)) argument
212 #define LOAD_OP(opcode) TEST_OPCODE((opcode),MASK_CPDT | BIT_LOAD) argument
213 #define STORE_OP(opcode) ((opcode & (MASK_CPDT | BIT_LOAD)) == MASK_CPDT) argument
215 #define LDF_OP(opcode) (LOAD_OP(opcode) && (getCoprocessorNumber(opcode) == 1)) argument
216 #define LFM_OP(opcode) (LOAD_OP(opcode) && (getCoprocessorNumber(opcode) == 2)) argument
217 #define STF_OP(opcode) (STORE_OP(opcode) && (getCoprocessorNumber(opcode) == 1)) argument
218 #define SFM_OP(opcode) (STORE_OP(opcode) && (getCoprocessorNumber(opcode) == 2)) argument
220 #define PREINDEXED(opcode) ((opcode & BIT_PREINDEX) != 0) argument
[all …]
Dfpa11_cpdt.c224 unsigned int PerformLDF(const unsigned int opcode) in PerformLDF() argument
227 unsigned int nRc = 1, write_back = WRITE_BACK(opcode); in PerformLDF()
229 pBase = (unsigned int __user *) readRegister(getRn(opcode)); in PerformLDF()
230 if (REG_PC == getRn(opcode)) { in PerformLDF()
236 if (BIT_UP_SET(opcode)) in PerformLDF()
237 pFinal += getOffset(opcode); in PerformLDF()
239 pFinal -= getOffset(opcode); in PerformLDF()
241 if (PREINDEXED(opcode)) in PerformLDF()
246 switch (opcode & MASK_TRANSFER_LENGTH) { in PerformLDF()
248 loadSingle(getFd(opcode), pAddress); in PerformLDF()
[all …]
Dfpa11_cprt.c30 unsigned int PerformFLT(const unsigned int opcode);
31 unsigned int PerformFIX(const unsigned int opcode);
33 static unsigned int PerformComparison(const unsigned int opcode);
35 unsigned int EmulateCPRT(const unsigned int opcode) in EmulateCPRT() argument
38 if (opcode & 0x800000) { in EmulateCPRT()
43 return PerformComparison(opcode); in EmulateCPRT()
47 switch ((opcode & 0x700000) >> 20) { in EmulateCPRT()
49 return PerformFLT(opcode); in EmulateCPRT()
52 return PerformFIX(opcode); in EmulateCPRT()
56 writeFPSR(readRegister(getRd(opcode))); in EmulateCPRT()
[all …]
Dfpa11.c47 int8 SetRoundingMode(const unsigned int opcode) in SetRoundingMode() argument
49 switch (opcode & MASK_ROUNDING_MODE) { in SetRoundingMode()
65 int8 SetRoundingPrecision(const unsigned int opcode) in SetRoundingPrecision() argument
68 switch (opcode & MASK_ROUNDING_PRECISION) { in SetRoundingPrecision()
97 unsigned int EmulateAll(unsigned int opcode) in EmulateAll() argument
102 printk("NWFPE: emulating opcode %08x\n", opcode); in EmulateAll()
104 code = opcode & 0x00000f00; in EmulateAll()
107 code = opcode & 0x0e000000; in EmulateAll()
109 if (opcode & 0x00000010) { in EmulateAll()
113 return EmulateCPRT(opcode); in EmulateAll()
[all …]
Dfpa11_cpdo.c26 unsigned int SingleCPDO(struct roundingData *roundData, const unsigned int opcode, FPREG * rFd);
27 unsigned int DoubleCPDO(struct roundingData *roundData, const unsigned int opcode, FPREG * rFd);
28 unsigned int ExtendedCPDO(struct roundingData *roundData, const unsigned int opcode, FPREG * rFd);
30 unsigned int EmulateCPDO(const unsigned int opcode) in EmulateCPDO() argument
39 nDest = getDestinationSize(opcode); in EmulateCPDO()
43 roundData.mode = SetRoundingMode(opcode); in EmulateCPDO()
44 roundData.precision = SetRoundingPrecision(opcode); in EmulateCPDO()
52 if (MONADIC_INSTRUCTION(opcode)) in EmulateCPDO()
55 nType = fpa11->fType[getFn(opcode)]; in EmulateCPDO()
57 if (!CONSTANT_FM(opcode)) { in EmulateCPDO()
[all …]
Dfpa11.h97 extern unsigned int EmulateAll(unsigned int opcode);
99 extern unsigned int EmulateCPDT(const unsigned int opcode);
100 extern unsigned int EmulateCPDO(const unsigned int opcode);
101 extern unsigned int EmulateCPRT(const unsigned int opcode);
104 extern unsigned int PerformLDF(const unsigned int opcode);
105 extern unsigned int PerformSTF(const unsigned int opcode);
106 extern unsigned int PerformLFM(const unsigned int opcode);
107 extern unsigned int PerformSFM(const unsigned int opcode);
112 const unsigned int opcode, FPREG * rFd);
115 const unsigned int opcode, FPREG * rFd);
[all …]
/arch/arm64/kernel/probes/
Dsimulate-insn.c59 static bool __kprobes check_cbz(u32 opcode, struct pt_regs *regs) in check_cbz() argument
61 int xn = opcode & 0x1f; in check_cbz()
63 return (opcode & (1 << 31)) ? in check_cbz()
67 static bool __kprobes check_cbnz(u32 opcode, struct pt_regs *regs) in check_cbnz() argument
69 int xn = opcode & 0x1f; in check_cbnz()
71 return (opcode & (1 << 31)) ? in check_cbnz()
75 static bool __kprobes check_tbz(u32 opcode, struct pt_regs *regs) in check_tbz() argument
77 int xn = opcode & 0x1f; in check_tbz()
78 int bit_pos = ((opcode & (1 << 31)) >> 26) | ((opcode >> 19) & 0x1f); in check_tbz()
83 static bool __kprobes check_tbnz(u32 opcode, struct pt_regs *regs) in check_tbnz() argument
[all …]
Dsimulate-insn.h19 void simulate_adr_adrp(u32 opcode, long addr, struct pt_regs *regs);
20 void simulate_b_bl(u32 opcode, long addr, struct pt_regs *regs);
21 void simulate_b_cond(u32 opcode, long addr, struct pt_regs *regs);
22 void simulate_br_blr_ret(u32 opcode, long addr, struct pt_regs *regs);
23 void simulate_cbz_cbnz(u32 opcode, long addr, struct pt_regs *regs);
24 void simulate_tbz_tbnz(u32 opcode, long addr, struct pt_regs *regs);
25 void simulate_ldr_literal(u32 opcode, long addr, struct pt_regs *regs);
26 void simulate_ldrsw_literal(u32 opcode, long addr, struct pt_regs *regs);
/arch/powerpc/include/asm/
Dtrace.h63 TP_PROTO(unsigned long opcode, unsigned long *args),
65 TP_ARGS(opcode, args),
70 __field(unsigned long, opcode)
74 __entry->opcode = opcode;
77 TP_printk("opcode=%lu", __entry->opcode),
84 TP_PROTO(unsigned long opcode, unsigned long retval,
87 TP_ARGS(opcode, retval, retbuf),
92 __field(unsigned long, opcode)
97 __entry->opcode = opcode;
101 TP_printk("opcode=%lu retval=%lu", __entry->opcode, __entry->retval),
[all …]
/arch/c6x/kernel/
Dmodule.c19 u32 opcode; in fixup_pcr() local
26 opcode = *ip; in fixup_pcr()
27 opcode &= ~(mask << shift); in fixup_pcr()
28 opcode |= ((delta & mask) << shift); in fixup_pcr()
29 *ip = opcode; in fixup_pcr()
32 maskbits, ip, (void *)dest, opcode); in fixup_pcr()
53 u32 *location, opcode; in apply_relocate_add() local
88 opcode = *location; in apply_relocate_add()
89 opcode &= ~0x7fff80; in apply_relocate_add()
90 opcode |= ((v & 0xffff) << 7); in apply_relocate_add()
[all …]
/arch/sh/kernel/
Dtraps_64.c40 insn_size_t opcode; in read_opcode() local
49 get_user_error = __get_user(opcode, (insn_size_t *)aligned_pc); in read_opcode()
50 *result_opcode = opcode; in read_opcode()
85 insn_size_t opcode, in generate_and_check_address() argument
100 basereg = (opcode >> 20) & 0x3f; in generate_and_check_address()
104 displacement = (opcode >> 10) & 0x3ff; in generate_and_check_address()
110 offsetreg = (opcode >> 10) & 0x3f; in generate_and_check_address()
133 unaligned_fixups_notify(current, opcode, regs); in generate_and_check_address()
167 insn_size_t opcode, in misaligned_load() argument
177 error = generate_and_check_address(regs, opcode, in misaligned_load()
[all …]
Dkprobes.c45 kprobe_opcode_t opcode = *(kprobe_opcode_t *) (p->addr); in arch_prepare_kprobe() local
47 if (OPCODE_RTE(opcode)) in arch_prepare_kprobe()
50 p->opcode = opcode; in arch_prepare_kprobe()
58 p->opcode = *p->addr; in arch_copy_kprobe()
70 *p->addr = p->opcode; in arch_disarm_kprobe()
112 saved->opcode = 0; in arch_remove_kprobe()
119 saved->opcode = 0; in arch_remove_kprobe()
159 if (OPCODE_JSR(p->opcode) || OPCODE_JMP(p->opcode)) { in prepare_singlestep()
160 unsigned int reg_nr = ((p->opcode >> 8) & 0x000F); in prepare_singlestep()
162 } else if (OPCODE_BRA(p->opcode) || OPCODE_BSR(p->opcode)) { in prepare_singlestep()
[all …]
/arch/blackfin/kernel/
Dtrace.c276 static void decode_ProgCtrl_0(unsigned int opcode) in decode_ProgCtrl_0() argument
278 int poprnd = ((opcode >> ProgCtrl_poprnd_bits) & ProgCtrl_poprnd_mask); in decode_ProgCtrl_0()
279 int prgfunc = ((opcode >> ProgCtrl_prgfunc_bits) & ProgCtrl_prgfunc_mask); in decode_ProgCtrl_0()
318 pr_cont("0x%04x", opcode); in decode_ProgCtrl_0()
332 static void decode_BRCC_0(unsigned int opcode) in decode_BRCC_0() argument
334 int B = ((opcode >> BRCC_B_bits) & BRCC_B_mask); in decode_BRCC_0()
335 int T = ((opcode >> BRCC_T_bits) & BRCC_T_mask); in decode_BRCC_0()
348 static void decode_CALLa_0(unsigned int opcode) in decode_CALLa_0() argument
350 int S = ((opcode >> (CALLa_S_bits - 16)) & CALLa_S_mask); in decode_CALLa_0()
374 static void decode_LoopSetup_0(unsigned int opcode) in decode_LoopSetup_0() argument
[all …]
Dpseudodbg.c106 bool execute_pseudodbg_assert(struct pt_regs *fp, unsigned int opcode) in execute_pseudodbg_assert() argument
108 int expected = ((opcode >> PseudoDbg_Assert_expected_bits) & PseudoDbg_Assert_expected_mask); in execute_pseudodbg_assert()
109 int dbgop = ((opcode >> (PseudoDbg_Assert_dbgop_bits)) & PseudoDbg_Assert_dbgop_mask); in execute_pseudodbg_assert()
110 int grp = ((opcode >> (PseudoDbg_Assert_grp_bits)) & PseudoDbg_Assert_grp_mask); in execute_pseudodbg_assert()
111 int regtest = ((opcode >> (PseudoDbg_Assert_regtest_bits)) & PseudoDbg_Assert_regtest_mask); in execute_pseudodbg_assert()
114 if ((opcode & 0xFF000000) != PseudoDbg_Assert_opcode) in execute_pseudodbg_assert()
158 bool execute_pseudodbg(struct pt_regs *fp, unsigned int opcode) in execute_pseudodbg() argument
163 if ((opcode & 0xFF000000) != PseudoDbg_opcode) in execute_pseudodbg()
166 opcode >>= 16; in execute_pseudodbg()
167 grp = ((opcode >> PseudoDbg_grp_bits) & PseudoDbg_reg_mask); in execute_pseudodbg()
[all …]
Ddumpstack.c23 unsigned int opcode; in is_bfin_call() local
25 if (!get_instruction(&opcode, addr)) in is_bfin_call()
28 if ((opcode >= 0x0060 && opcode <= 0x0067) || in is_bfin_call()
29 (opcode >= 0x0070 && opcode <= 0x0077) || in is_bfin_call()
30 (opcode >= 0xE3000000 && opcode <= 0xE3FFFFFF)) in is_bfin_call()
/arch/x86/mm/
Dpf_in.c118 static int get_opcode(unsigned char *addr, unsigned int *opcode) in get_opcode() argument
124 *opcode = *(unsigned short *)addr; in get_opcode()
127 *opcode = *addr; in get_opcode()
134 #define CHECK_OP_TYPE(opcode, array, type) \ argument
136 if (array[i] == opcode) { \
144 unsigned int opcode; in get_ins_type() local
152 p += get_opcode(p, &opcode); in get_ins_type()
154 CHECK_OP_TYPE(opcode, reg_rop, REG_READ); in get_ins_type()
155 CHECK_OP_TYPE(opcode, reg_wop, REG_WRITE); in get_ins_type()
156 CHECK_OP_TYPE(opcode, imm_wop, IMM_WRITE); in get_ins_type()
[all …]
/arch/powerpc/xmon/
Dppc-dis.c94 const struct powerpc_opcode *opcode; in lookup_powerpc() local
103 for (opcode = powerpc_opcodes; opcode < opcode_end; ++opcode) in lookup_powerpc()
109 if ((insn & opcode->mask) != opcode->opcode in lookup_powerpc()
111 && ((opcode->flags & dialect) == 0 in lookup_powerpc()
112 || (opcode->deprecated & dialect) != 0))) in lookup_powerpc()
117 for (opindex = opcode->operands; *opindex != 0; opindex++) in lookup_powerpc()
126 return opcode; in lookup_powerpc()
136 const struct powerpc_opcode *opcode; in print_insn_powerpc() local
168 opcode = NULL; in print_insn_powerpc()
171 if (opcode == NULL) in print_insn_powerpc()
[all …]
/arch/x86/lib/
Dinat.c27 insn_attr_t inat_get_opcode_attribute(insn_byte_t opcode) in inat_get_opcode_attribute() argument
29 return inat_primary_table[opcode]; in inat_get_opcode_attribute()
40 insn_attr_t inat_get_escape_attribute(insn_byte_t opcode, int lpfx_id, in inat_get_escape_attribute() argument
51 if (inat_has_variant(table[opcode]) && lpfx_id) { in inat_get_escape_attribute()
56 return table[opcode]; in inat_get_escape_attribute()
79 insn_attr_t inat_get_avx_attribute(insn_byte_t opcode, insn_byte_t vex_m, in inat_get_avx_attribute() argument
89 if (!inat_is_group(table[opcode]) && vex_p) { in inat_get_avx_attribute()
95 return table[opcode]; in inat_get_avx_attribute()
/arch/mips/include/uapi/asm/
Dinst.h626 __BITFIELD_FIELD(unsigned int opcode : 6, /* Jump format */
632 __BITFIELD_FIELD(unsigned int opcode : 6,
640 __BITFIELD_FIELD(unsigned int opcode : 6,
648 __BITFIELD_FIELD(unsigned int opcode : 6,
657 __BITFIELD_FIELD(unsigned int opcode : 6,
667 __BITFIELD_FIELD(unsigned int opcode : 6,
677 __BITFIELD_FIELD(unsigned int opcode : 6,
689 __BITFIELD_FIELD(unsigned int opcode : 6,
697 __BITFIELD_FIELD(unsigned int opcode : 6,
707 __BITFIELD_FIELD(unsigned int opcode : 6,
[all …]
/arch/mn10300/mm/
Dmisalignment.c44 unsigned params, unsigned opcode,
50 unsigned opcode, unsigned long disp,
53 static void misalignment_MOV_Lcc(struct pt_regs *regs, uint32_t opcode);
154 u_int32_t opcode; member
325 uint32_t opcode, noc, xo, xm; in misalignment() local
351 opcode = byte; in misalignment()
355 npop = ilog2(pop->opcode | pop->opmask); in misalignment()
362 if ((opcode & pop->opmask) == pop->opcode) in misalignment()
365 xo = pop->opcode >> (npop - noc); in misalignment()
368 if ((opcode & xm) != xo) in misalignment()
[all …]
/arch/x86/include/asm/
Diosf_mbi.h71 int iosf_mbi_read(u8 port, u8 opcode, u32 offset, u32 *mdr);
83 int iosf_mbi_write(u8 port, u8 opcode, u32 offset, u32 mdr);
96 int iosf_mbi_modify(u8 port, u8 opcode, u32 offset, u32 mdr, u32 mask);
165 int iosf_mbi_read(u8 port, u8 opcode, u32 offset, u32 *mdr) in iosf_mbi_read() argument
172 int iosf_mbi_write(u8 port, u8 opcode, u32 offset, u32 mdr) in iosf_mbi_write() argument
179 int iosf_mbi_modify(u8 port, u8 opcode, u32 offset, u32 mdr, u32 mask) in iosf_mbi_modify() argument
/arch/arm/probes/
Ddecode-arm.h56 void __kprobes simulate_bbl(probes_opcode_t opcode,
58 void __kprobes simulate_blx1(probes_opcode_t opcode,
60 void __kprobes simulate_blx2bx(probes_opcode_t opcode,
62 void __kprobes simulate_mrs(probes_opcode_t opcode,
64 void __kprobes simulate_mov_ipsp(probes_opcode_t opcode,
/arch/x86/events/intel/
Dp4.c23 unsigned int opcode; /* Event code and ESCR selector */ member
73 .opcode = P4_OPCODE(P4_EVENT_TC_DELIVER_MODE),
87 .opcode = P4_OPCODE(P4_EVENT_BPU_FETCH_REQUEST),
94 .opcode = P4_OPCODE(P4_EVENT_ITLB_REFERENCE),
103 .opcode = P4_OPCODE(P4_EVENT_MEMORY_CANCEL),
111 .opcode = P4_OPCODE(P4_EVENT_MEMORY_COMPLETE),
119 .opcode = P4_OPCODE(P4_EVENT_LOAD_PORT_REPLAY),
126 .opcode = P4_OPCODE(P4_EVENT_STORE_PORT_REPLAY),
133 .opcode = P4_OPCODE(P4_EVENT_MOB_LOAD_REPLAY),
143 .opcode = P4_OPCODE(P4_EVENT_PAGE_WALK_TYPE),
[all …]
/arch/tile/kernel/
Djump_label.c31 tilegx_bundle_bits opcode; in __jump_label_transform() local
36 opcode = tilegx_gen_branch(e->code, e->target, false); in __jump_label_transform()
38 opcode = NOP(); in __jump_label_transform()
40 *(tilegx_bundle_bits *)pc_wr = opcode; in __jump_label_transform()
/arch/powerpc/platforms/powernv/
Dopal-tracepoints.c48 void __trace_opal_entry(unsigned long opcode, unsigned long *args) in __trace_opal_entry() argument
62 trace_opal_entry(opcode, args); in __trace_opal_entry()
69 void __trace_opal_exit(long opcode, unsigned long retval) in __trace_opal_exit() argument
82 trace_opal_exit(opcode, retval); in __trace_opal_exit()

1234567