Lines Matching refs:op

23 #define OPCODE_BT(op)		(((op) & 0xff00) == 0x8900)  argument
24 #define OPCODE_BF(op) (((op) & 0xff00) == 0x8b00) argument
25 #define OPCODE_BTF_DISP(op) (((op) & 0x80) ? (((op) | 0xffffff80) << 1) : \ argument
26 (((op) & 0x7f ) << 1))
27 #define OPCODE_BFS(op) (((op) & 0xff00) == 0x8f00) argument
28 #define OPCODE_BTS(op) (((op) & 0xff00) == 0x8d00) argument
29 #define OPCODE_BRA(op) (((op) & 0xf000) == 0xa000) argument
30 #define OPCODE_BRA_DISP(op) (((op) & 0x800) ? (((op) | 0xfffff800) << 1) : \ argument
31 (((op) & 0x7ff) << 1))
32 #define OPCODE_BRAF(op) (((op) & 0xf0ff) == 0x0023) argument
33 #define OPCODE_BRAF_REG(op) (((op) & 0x0f00) >> 8) argument
34 #define OPCODE_BSR(op) (((op) & 0xf000) == 0xb000) argument
35 #define OPCODE_BSR_DISP(op) (((op) & 0x800) ? (((op) | 0xfffff800) << 1) : \ argument
36 (((op) & 0x7ff) << 1))
37 #define OPCODE_BSRF(op) (((op) & 0xf0ff) == 0x0003) argument
38 #define OPCODE_BSRF_REG(op) (((op) >> 8) & 0xf) argument
39 #define OPCODE_JMP(op) (((op) & 0xf0ff) == 0x402b) argument
40 #define OPCODE_JMP_REG(op) (((op) >> 8) & 0xf) argument
41 #define OPCODE_JSR(op) (((op) & 0xf0ff) == 0x400b) argument
42 #define OPCODE_JSR_REG(op) (((op) >> 8) & 0xf) argument
43 #define OPCODE_RTS(op) ((op) == 0xb) argument
44 #define OPCODE_RTE(op) ((op) == 0x2b) argument
52 insn_size_t op = __raw_readw(linux_regs->pc); in get_step_address() local
56 if (OPCODE_BT(op)) { in get_step_address()
58 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); in get_step_address()
64 else if (OPCODE_BTS(op)) { in get_step_address()
66 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); in get_step_address()
72 else if (OPCODE_BF(op)) { in get_step_address()
74 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); in get_step_address()
80 else if (OPCODE_BFS(op)) { in get_step_address()
82 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); in get_step_address()
88 else if (OPCODE_BRA(op)) in get_step_address()
89 addr = linux_regs->pc + 4 + OPCODE_BRA_DISP(op); in get_step_address()
92 else if (OPCODE_BRAF(op)) in get_step_address()
94 + linux_regs->regs[OPCODE_BRAF_REG(op)]; in get_step_address()
97 else if (OPCODE_BSR(op)) in get_step_address()
98 addr = linux_regs->pc + 4 + OPCODE_BSR_DISP(op); in get_step_address()
101 else if (OPCODE_BSRF(op)) in get_step_address()
103 + linux_regs->regs[OPCODE_BSRF_REG(op)]; in get_step_address()
106 else if (OPCODE_JMP(op)) in get_step_address()
107 addr = linux_regs->regs[OPCODE_JMP_REG(op)]; in get_step_address()
110 else if (OPCODE_JSR(op)) in get_step_address()
111 addr = linux_regs->regs[OPCODE_JSR_REG(op)]; in get_step_address()
114 else if (OPCODE_RTS(op)) in get_step_address()
118 else if (OPCODE_RTE(op)) in get_step_address()
123 addr = linux_regs->pc + instruction_size(op); in get_step_address()
125 flush_icache_range(addr, addr + instruction_size(op)); in get_step_address()