Lines Matching refs:op

20 #define OPCODE_BT(op)		(((op) & 0xff00) == 0x8900)  argument
21 #define OPCODE_BF(op) (((op) & 0xff00) == 0x8b00) argument
22 #define OPCODE_BTF_DISP(op) (((op) & 0x80) ? (((op) | 0xffffff80) << 1) : \ argument
23 (((op) & 0x7f ) << 1))
24 #define OPCODE_BFS(op) (((op) & 0xff00) == 0x8f00) argument
25 #define OPCODE_BTS(op) (((op) & 0xff00) == 0x8d00) argument
26 #define OPCODE_BRA(op) (((op) & 0xf000) == 0xa000) argument
27 #define OPCODE_BRA_DISP(op) (((op) & 0x800) ? (((op) | 0xfffff800) << 1) : \ argument
28 (((op) & 0x7ff) << 1))
29 #define OPCODE_BRAF(op) (((op) & 0xf0ff) == 0x0023) argument
30 #define OPCODE_BRAF_REG(op) (((op) & 0x0f00) >> 8) argument
31 #define OPCODE_BSR(op) (((op) & 0xf000) == 0xb000) argument
32 #define OPCODE_BSR_DISP(op) (((op) & 0x800) ? (((op) | 0xfffff800) << 1) : \ argument
33 (((op) & 0x7ff) << 1))
34 #define OPCODE_BSRF(op) (((op) & 0xf0ff) == 0x0003) argument
35 #define OPCODE_BSRF_REG(op) (((op) >> 8) & 0xf) argument
36 #define OPCODE_JMP(op) (((op) & 0xf0ff) == 0x402b) argument
37 #define OPCODE_JMP_REG(op) (((op) >> 8) & 0xf) argument
38 #define OPCODE_JSR(op) (((op) & 0xf0ff) == 0x400b) argument
39 #define OPCODE_JSR_REG(op) (((op) >> 8) & 0xf) argument
40 #define OPCODE_RTS(op) ((op) == 0xb) argument
41 #define OPCODE_RTE(op) ((op) == 0x2b) argument
49 insn_size_t op = __raw_readw(linux_regs->pc); in get_step_address() local
53 if (OPCODE_BT(op)) { in get_step_address()
55 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); in get_step_address()
61 else if (OPCODE_BTS(op)) { in get_step_address()
63 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); in get_step_address()
69 else if (OPCODE_BF(op)) { in get_step_address()
71 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); in get_step_address()
77 else if (OPCODE_BFS(op)) { in get_step_address()
79 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); in get_step_address()
85 else if (OPCODE_BRA(op)) in get_step_address()
86 addr = linux_regs->pc + 4 + OPCODE_BRA_DISP(op); in get_step_address()
89 else if (OPCODE_BRAF(op)) in get_step_address()
91 + linux_regs->regs[OPCODE_BRAF_REG(op)]; in get_step_address()
94 else if (OPCODE_BSR(op)) in get_step_address()
95 addr = linux_regs->pc + 4 + OPCODE_BSR_DISP(op); in get_step_address()
98 else if (OPCODE_BSRF(op)) in get_step_address()
100 + linux_regs->regs[OPCODE_BSRF_REG(op)]; in get_step_address()
103 else if (OPCODE_JMP(op)) in get_step_address()
104 addr = linux_regs->regs[OPCODE_JMP_REG(op)]; in get_step_address()
107 else if (OPCODE_JSR(op)) in get_step_address()
108 addr = linux_regs->regs[OPCODE_JSR_REG(op)]; in get_step_address()
111 else if (OPCODE_RTS(op)) in get_step_address()
115 else if (OPCODE_RTE(op)) in get_step_address()
120 addr = linux_regs->pc + instruction_size(op); in get_step_address()
122 flush_icache_range(addr, addr + instruction_size(op)); in get_step_address()