Lines Matching refs:opcode
69 simulate_br16(u32 opcode, long addr, struct pt_regs *regs) in simulate_br16() argument
72 addr + sign_extend32((opcode & 0x3ff) << 1, 9)); in simulate_br16()
76 simulate_br32(u32 opcode, long addr, struct pt_regs *regs) in simulate_br32() argument
79 addr + sign_extend32((opcode & 0xffff0000) >> 15, 15)); in simulate_br32()
83 simulate_bt16(u32 opcode, long addr, struct pt_regs *regs) in simulate_bt16() argument
87 addr + sign_extend32((opcode & 0x3ff) << 1, 9)); in simulate_bt16()
93 simulate_bt32(u32 opcode, long addr, struct pt_regs *regs) in simulate_bt32() argument
97 addr + sign_extend32((opcode & 0xffff0000) >> 15, 15)); in simulate_bt32()
103 simulate_bf16(u32 opcode, long addr, struct pt_regs *regs) in simulate_bf16() argument
107 addr + sign_extend32((opcode & 0x3ff) << 1, 9)); in simulate_bf16()
113 simulate_bf32(u32 opcode, long addr, struct pt_regs *regs) in simulate_bf32() argument
117 addr + sign_extend32((opcode & 0xffff0000) >> 15, 15)); in simulate_bf32()
123 simulate_jmp16(u32 opcode, long addr, struct pt_regs *regs) in simulate_jmp16() argument
125 unsigned long tmp = (opcode >> 2) & 0xf; in simulate_jmp16()
133 simulate_jmp32(u32 opcode, long addr, struct pt_regs *regs) in simulate_jmp32() argument
135 unsigned long tmp = opcode & 0x1f; in simulate_jmp32()
143 simulate_jsr16(u32 opcode, long addr, struct pt_regs *regs) in simulate_jsr16() argument
145 unsigned long tmp = (opcode >> 2) & 0xf; in simulate_jsr16()
155 simulate_jsr32(u32 opcode, long addr, struct pt_regs *regs) in simulate_jsr32() argument
157 unsigned long tmp = opcode & 0x1f; in simulate_jsr32()
167 simulate_lrw16(u32 opcode, long addr, struct pt_regs *regs) in simulate_lrw16() argument
170 unsigned long tmp = (opcode & 0x300) >> 3; in simulate_lrw16()
171 unsigned long offset = ((opcode & 0x1f) | tmp) << 2; in simulate_lrw16()
173 tmp = (opcode & 0xe0) >> 5; in simulate_lrw16()
181 simulate_lrw32(u32 opcode, long addr, struct pt_regs *regs) in simulate_lrw32() argument
184 unsigned long offset = (opcode & 0xffff0000) >> 14; in simulate_lrw32()
185 unsigned long tmp = opcode & 0x0000001f; in simulate_lrw32()
194 simulate_pop16(u32 opcode, long addr, struct pt_regs *regs) in simulate_pop16() argument
199 for (i = 0; i < (opcode & 0xf); i++) { in simulate_pop16()
204 if (opcode & 0x10) { in simulate_pop16()
215 simulate_pop32(u32 opcode, long addr, struct pt_regs *regs) in simulate_pop32() argument
220 for (i = 0; i < ((opcode & 0xf0000) >> 16); i++) { in simulate_pop32()
225 if (opcode & 0x100000) { in simulate_pop32()
230 for (i = 0; i < ((opcode & 0xe00000) >> 21); i++) { in simulate_pop32()
235 if (opcode & 0x1000000) { in simulate_pop32()
246 simulate_bez32(u32 opcode, long addr, struct pt_regs *regs) in simulate_bez32() argument
248 unsigned long tmp = opcode & 0x1f; in simulate_bez32()
254 addr + sign_extend32((opcode & 0xffff0000) >> 15, 15)); in simulate_bez32()
260 simulate_bnez32(u32 opcode, long addr, struct pt_regs *regs) in simulate_bnez32() argument
262 unsigned long tmp = opcode & 0x1f; in simulate_bnez32()
268 addr + sign_extend32((opcode & 0xffff0000) >> 15, 15)); in simulate_bnez32()
274 simulate_bnezad32(u32 opcode, long addr, struct pt_regs *regs) in simulate_bnezad32() argument
276 unsigned long tmp = opcode & 0x1f; in simulate_bnezad32()
285 addr + sign_extend32((opcode & 0xffff0000) >> 15, 15)); in simulate_bnezad32()
293 simulate_bhsz32(u32 opcode, long addr, struct pt_regs *regs) in simulate_bhsz32() argument
295 unsigned long tmp = opcode & 0x1f; in simulate_bhsz32()
302 addr + sign_extend32((opcode & 0xffff0000) >> 15, 15)); in simulate_bhsz32()
308 simulate_bhz32(u32 opcode, long addr, struct pt_regs *regs) in simulate_bhz32() argument
310 unsigned long tmp = opcode & 0x1f; in simulate_bhz32()
317 addr + sign_extend32((opcode & 0xffff0000) >> 15, 15)); in simulate_bhz32()
323 simulate_blsz32(u32 opcode, long addr, struct pt_regs *regs) in simulate_blsz32() argument
325 unsigned long tmp = opcode & 0x1f; in simulate_blsz32()
332 addr + sign_extend32((opcode & 0xffff0000) >> 15, 15)); in simulate_blsz32()
338 simulate_blz32(u32 opcode, long addr, struct pt_regs *regs) in simulate_blz32() argument
340 unsigned long tmp = opcode & 0x1f; in simulate_blz32()
347 addr + sign_extend32((opcode & 0xffff0000) >> 15, 15)); in simulate_blz32()
353 simulate_bsr32(u32 opcode, long addr, struct pt_regs *regs) in simulate_bsr32() argument
357 tmp = (opcode & 0xffff) << 16; in simulate_bsr32()
358 tmp |= (opcode & 0xffff0000) >> 16; in simulate_bsr32()
367 simulate_jmpi32(u32 opcode, long addr, struct pt_regs *regs) in simulate_jmpi32() argument
370 unsigned long offset = ((opcode & 0xffff0000) >> 14); in simulate_jmpi32()
379 simulate_jsri32(u32 opcode, long addr, struct pt_regs *regs) in simulate_jsri32() argument
382 unsigned long offset = ((opcode & 0xffff0000) >> 14); in simulate_jsri32()