Lines Matching refs:op

21 #define OPCODE_BT(op)		(((op) & 0xff00) == 0x8900)  argument
22 #define OPCODE_BF(op) (((op) & 0xff00) == 0x8b00) argument
23 #define OPCODE_BTF_DISP(op) (((op) & 0x80) ? (((op) | 0xffffff80) << 1) : \ argument
24 (((op) & 0x7f ) << 1))
25 #define OPCODE_BFS(op) (((op) & 0xff00) == 0x8f00) argument
26 #define OPCODE_BTS(op) (((op) & 0xff00) == 0x8d00) argument
27 #define OPCODE_BRA(op) (((op) & 0xf000) == 0xa000) argument
28 #define OPCODE_BRA_DISP(op) (((op) & 0x800) ? (((op) | 0xfffff800) << 1) : \ argument
29 (((op) & 0x7ff) << 1))
30 #define OPCODE_BRAF(op) (((op) & 0xf0ff) == 0x0023) argument
31 #define OPCODE_BRAF_REG(op) (((op) & 0x0f00) >> 8) argument
32 #define OPCODE_BSR(op) (((op) & 0xf000) == 0xb000) argument
33 #define OPCODE_BSR_DISP(op) (((op) & 0x800) ? (((op) | 0xfffff800) << 1) : \ argument
34 (((op) & 0x7ff) << 1))
35 #define OPCODE_BSRF(op) (((op) & 0xf0ff) == 0x0003) argument
36 #define OPCODE_BSRF_REG(op) (((op) >> 8) & 0xf) argument
37 #define OPCODE_JMP(op) (((op) & 0xf0ff) == 0x402b) argument
38 #define OPCODE_JMP_REG(op) (((op) >> 8) & 0xf) argument
39 #define OPCODE_JSR(op) (((op) & 0xf0ff) == 0x400b) argument
40 #define OPCODE_JSR_REG(op) (((op) >> 8) & 0xf) argument
41 #define OPCODE_RTS(op) ((op) == 0xb) argument
42 #define OPCODE_RTE(op) ((op) == 0x2b) argument
50 insn_size_t op = __raw_readw(linux_regs->pc); in get_step_address() local
54 if (OPCODE_BT(op)) { in get_step_address()
56 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); in get_step_address()
62 else if (OPCODE_BTS(op)) { in get_step_address()
64 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); in get_step_address()
70 else if (OPCODE_BF(op)) { in get_step_address()
72 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); in get_step_address()
78 else if (OPCODE_BFS(op)) { in get_step_address()
80 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); in get_step_address()
86 else if (OPCODE_BRA(op)) in get_step_address()
87 addr = linux_regs->pc + 4 + OPCODE_BRA_DISP(op); in get_step_address()
90 else if (OPCODE_BRAF(op)) in get_step_address()
92 + linux_regs->regs[OPCODE_BRAF_REG(op)]; in get_step_address()
95 else if (OPCODE_BSR(op)) in get_step_address()
96 addr = linux_regs->pc + 4 + OPCODE_BSR_DISP(op); in get_step_address()
99 else if (OPCODE_BSRF(op)) in get_step_address()
101 + linux_regs->regs[OPCODE_BSRF_REG(op)]; in get_step_address()
104 else if (OPCODE_JMP(op)) in get_step_address()
105 addr = linux_regs->regs[OPCODE_JMP_REG(op)]; in get_step_address()
108 else if (OPCODE_JSR(op)) in get_step_address()
109 addr = linux_regs->regs[OPCODE_JSR_REG(op)]; in get_step_address()
112 else if (OPCODE_RTS(op)) in get_step_address()
116 else if (OPCODE_RTE(op)) in get_step_address()
121 addr = linux_regs->pc + instruction_size(op); in get_step_address()
123 flush_icache_range(addr, addr + instruction_size(op)); in get_step_address()