• Home
  • Raw
  • Download

Lines Matching refs:opcode

51 static bool __kprobes check_cbz(u32 opcode, struct pt_regs *regs)  in check_cbz()  argument
53 int xn = opcode & 0x1f; in check_cbz()
55 return (opcode & (1 << 31)) ? in check_cbz()
59 static bool __kprobes check_cbnz(u32 opcode, struct pt_regs *regs) in check_cbnz() argument
61 int xn = opcode & 0x1f; in check_cbnz()
63 return (opcode & (1 << 31)) ? in check_cbnz()
67 static bool __kprobes check_tbz(u32 opcode, struct pt_regs *regs) in check_tbz() argument
69 int xn = opcode & 0x1f; in check_tbz()
70 int bit_pos = ((opcode & (1 << 31)) >> 26) | ((opcode >> 19) & 0x1f); in check_tbz()
75 static bool __kprobes check_tbnz(u32 opcode, struct pt_regs *regs) in check_tbnz() argument
77 int xn = opcode & 0x1f; in check_tbnz()
78 int bit_pos = ((opcode & (1 << 31)) >> 26) | ((opcode >> 19) & 0x1f); in check_tbnz()
87 simulate_adr_adrp(u32 opcode, long addr, struct pt_regs *regs) in simulate_adr_adrp() argument
91 xn = opcode & 0x1f; in simulate_adr_adrp()
92 imm = ((opcode >> 3) & 0x1ffffc) | ((opcode >> 29) & 0x3); in simulate_adr_adrp()
94 if (opcode & 0x80000000) in simulate_adr_adrp()
105 simulate_b_bl(u32 opcode, long addr, struct pt_regs *regs) in simulate_b_bl() argument
107 int disp = bbl_displacement(opcode); in simulate_b_bl()
110 if (opcode & (1 << 31)) in simulate_b_bl()
117 simulate_b_cond(u32 opcode, long addr, struct pt_regs *regs) in simulate_b_cond() argument
121 if (aarch32_opcode_cond_checks[opcode & 0xf](regs->pstate & 0xffffffff)) in simulate_b_cond()
122 disp = bcond_displacement(opcode); in simulate_b_cond()
128 simulate_br_blr_ret(u32 opcode, long addr, struct pt_regs *regs) in simulate_br_blr_ret() argument
130 int xn = (opcode >> 5) & 0x1f; in simulate_br_blr_ret()
136 if (((opcode >> 21) & 0x3) == 1) in simulate_br_blr_ret()
141 simulate_cbz_cbnz(u32 opcode, long addr, struct pt_regs *regs) in simulate_cbz_cbnz() argument
145 if (opcode & (1 << 24)) { in simulate_cbz_cbnz()
146 if (check_cbnz(opcode, regs)) in simulate_cbz_cbnz()
147 disp = cbz_displacement(opcode); in simulate_cbz_cbnz()
149 if (check_cbz(opcode, regs)) in simulate_cbz_cbnz()
150 disp = cbz_displacement(opcode); in simulate_cbz_cbnz()
156 simulate_tbz_tbnz(u32 opcode, long addr, struct pt_regs *regs) in simulate_tbz_tbnz() argument
160 if (opcode & (1 << 24)) { in simulate_tbz_tbnz()
161 if (check_tbnz(opcode, regs)) in simulate_tbz_tbnz()
162 disp = tbz_displacement(opcode); in simulate_tbz_tbnz()
164 if (check_tbz(opcode, regs)) in simulate_tbz_tbnz()
165 disp = tbz_displacement(opcode); in simulate_tbz_tbnz()
171 simulate_ldr_literal(u32 opcode, long addr, struct pt_regs *regs) in simulate_ldr_literal() argument
174 int xn = opcode & 0x1f; in simulate_ldr_literal()
177 disp = ldr_displacement(opcode); in simulate_ldr_literal()
180 if (opcode & (1 << 30)) /* x0-x30 */ in simulate_ldr_literal()
189 simulate_ldrsw_literal(u32 opcode, long addr, struct pt_regs *regs) in simulate_ldrsw_literal() argument
192 int xn = opcode & 0x1f; in simulate_ldrsw_literal()
195 disp = ldr_displacement(opcode); in simulate_ldrsw_literal()