• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/sh/kernel/

Lines Matching refs:op

19 #define OPCODE_BT(op)		(((op) & 0xff00) == 0x8900)
20 #define OPCODE_BF(op) (((op) & 0xff00) == 0x8b00)
21 #define OPCODE_BTF_DISP(op) (((op) & 0x80) ? (((op) | 0xffffff80) << 1) : \
22 (((op) & 0x7f ) << 1))
23 #define OPCODE_BFS(op) (((op) & 0xff00) == 0x8f00)
24 #define OPCODE_BTS(op) (((op) & 0xff00) == 0x8d00)
25 #define OPCODE_BRA(op) (((op) & 0xf000) == 0xa000)
26 #define OPCODE_BRA_DISP(op) (((op) & 0x800) ? (((op) | 0xfffff800) << 1) : \
27 (((op) & 0x7ff) << 1))
28 #define OPCODE_BRAF(op) (((op) & 0xf0ff) == 0x0023)
29 #define OPCODE_BRAF_REG(op) (((op) & 0x0f00) >> 8)
30 #define OPCODE_BSR(op) (((op) & 0xf000) == 0xb000)
31 #define OPCODE_BSR_DISP(op) (((op) & 0x800) ? (((op) | 0xfffff800) << 1) : \
32 (((op) & 0x7ff) << 1))
33 #define OPCODE_BSRF(op) (((op) & 0xf0ff) == 0x0003)
34 #define OPCODE_BSRF_REG(op) (((op) >> 8) & 0xf)
35 #define OPCODE_JMP(op) (((op) & 0xf0ff) == 0x402b)
36 #define OPCODE_JMP_REG(op) (((op) >> 8) & 0xf)
37 #define OPCODE_JSR(op) (((op) & 0xf0ff) == 0x400b)
38 #define OPCODE_JSR_REG(op) (((op) >> 8) & 0xf)
39 #define OPCODE_RTS(op) ((op) == 0xb)
40 #define OPCODE_RTE(op) ((op) == 0x2b)
48 insn_size_t op = __raw_readw(linux_regs->pc);
52 if (OPCODE_BT(op)) {
54 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op);
60 else if (OPCODE_BTS(op)) {
62 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op);
68 else if (OPCODE_BF(op)) {
70 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op);
76 else if (OPCODE_BFS(op)) {
78 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op);
84 else if (OPCODE_BRA(op))
85 addr = linux_regs->pc + 4 + OPCODE_BRA_DISP(op);
88 else if (OPCODE_BRAF(op))
90 + linux_regs->regs[OPCODE_BRAF_REG(op)];
93 else if (OPCODE_BSR(op))
94 addr = linux_regs->pc + 4 + OPCODE_BSR_DISP(op);
97 else if (OPCODE_BSRF(op))
99 + linux_regs->regs[OPCODE_BSRF_REG(op)];
102 else if (OPCODE_JMP(op))
103 addr = linux_regs->regs[OPCODE_JMP_REG(op)];
106 else if (OPCODE_JSR(op))
107 addr = linux_regs->regs[OPCODE_JSR_REG(op)];
110 else if (OPCODE_RTS(op))
114 else if (OPCODE_RTE(op))
119 addr = linux_regs->pc + instruction_size(op);
121 flush_icache_range(addr, addr + instruction_size(op));