Lines Matching refs:opcode
52 static bool __kprobes check_cbz(u32 opcode, struct pt_regs *regs) in check_cbz() argument
54 int xn = opcode & 0x1f; in check_cbz()
56 return (opcode & (1 << 31)) ? in check_cbz()
60 static bool __kprobes check_cbnz(u32 opcode, struct pt_regs *regs) in check_cbnz() argument
62 int xn = opcode & 0x1f; in check_cbnz()
64 return (opcode & (1 << 31)) ? in check_cbnz()
68 static bool __kprobes check_tbz(u32 opcode, struct pt_regs *regs) in check_tbz() argument
70 int xn = opcode & 0x1f; in check_tbz()
71 int bit_pos = ((opcode & (1 << 31)) >> 26) | ((opcode >> 19) & 0x1f); in check_tbz()
76 static bool __kprobes check_tbnz(u32 opcode, struct pt_regs *regs) in check_tbnz() argument
78 int xn = opcode & 0x1f; in check_tbnz()
79 int bit_pos = ((opcode & (1 << 31)) >> 26) | ((opcode >> 19) & 0x1f); in check_tbnz()
88 simulate_adr_adrp(u32 opcode, long addr, struct pt_regs *regs) in simulate_adr_adrp() argument
92 xn = opcode & 0x1f; in simulate_adr_adrp()
93 imm = ((opcode >> 3) & 0x1ffffc) | ((opcode >> 29) & 0x3); in simulate_adr_adrp()
95 if (opcode & 0x80000000) in simulate_adr_adrp()
106 simulate_b_bl(u32 opcode, long addr, struct pt_regs *regs) in simulate_b_bl() argument
108 int disp = bbl_displacement(opcode); in simulate_b_bl()
111 if (opcode & (1 << 31)) in simulate_b_bl()
118 simulate_b_cond(u32 opcode, long addr, struct pt_regs *regs) in simulate_b_cond() argument
122 if (aarch32_opcode_cond_checks[opcode & 0xf](regs->pstate & 0xffffffff)) in simulate_b_cond()
123 disp = bcond_displacement(opcode); in simulate_b_cond()
129 simulate_br_blr_ret(u32 opcode, long addr, struct pt_regs *regs) in simulate_br_blr_ret() argument
131 int xn = (opcode >> 5) & 0x1f; in simulate_br_blr_ret()
137 if (((opcode >> 21) & 0x3) == 1) in simulate_br_blr_ret()
142 simulate_cbz_cbnz(u32 opcode, long addr, struct pt_regs *regs) in simulate_cbz_cbnz() argument
146 if (opcode & (1 << 24)) { in simulate_cbz_cbnz()
147 if (check_cbnz(opcode, regs)) in simulate_cbz_cbnz()
148 disp = cbz_displacement(opcode); in simulate_cbz_cbnz()
150 if (check_cbz(opcode, regs)) in simulate_cbz_cbnz()
151 disp = cbz_displacement(opcode); in simulate_cbz_cbnz()
157 simulate_tbz_tbnz(u32 opcode, long addr, struct pt_regs *regs) in simulate_tbz_tbnz() argument
161 if (opcode & (1 << 24)) { in simulate_tbz_tbnz()
162 if (check_tbnz(opcode, regs)) in simulate_tbz_tbnz()
163 disp = tbz_displacement(opcode); in simulate_tbz_tbnz()
165 if (check_tbz(opcode, regs)) in simulate_tbz_tbnz()
166 disp = tbz_displacement(opcode); in simulate_tbz_tbnz()
172 simulate_ldr_literal(u32 opcode, long addr, struct pt_regs *regs) in simulate_ldr_literal() argument
175 int xn = opcode & 0x1f; in simulate_ldr_literal()
178 disp = ldr_displacement(opcode); in simulate_ldr_literal()
181 if (opcode & (1 << 30)) /* x0-x30 */ in simulate_ldr_literal()
190 simulate_ldrsw_literal(u32 opcode, long addr, struct pt_regs *regs) in simulate_ldrsw_literal() argument
193 int xn = opcode & 0x1f; in simulate_ldrsw_literal()
196 disp = ldr_displacement(opcode); in simulate_ldrsw_literal()