Lines Matching refs:linux_regs

50 static short *get_step_address(struct pt_regs *linux_regs)  in get_step_address()  argument
52 insn_size_t op = __raw_readw(linux_regs->pc); in get_step_address()
57 if (linux_regs->sr & SR_T_BIT_MASK) in get_step_address()
58 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); in get_step_address()
60 addr = linux_regs->pc + 2; in get_step_address()
65 if (linux_regs->sr & SR_T_BIT_MASK) in get_step_address()
66 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); in get_step_address()
68 addr = linux_regs->pc + 4; /* Not in delay slot */ in get_step_address()
73 if (!(linux_regs->sr & SR_T_BIT_MASK)) in get_step_address()
74 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); in get_step_address()
76 addr = linux_regs->pc + 2; in get_step_address()
81 if (!(linux_regs->sr & SR_T_BIT_MASK)) in get_step_address()
82 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); in get_step_address()
84 addr = linux_regs->pc + 4; /* Not in delay slot */ in get_step_address()
89 addr = linux_regs->pc + 4 + OPCODE_BRA_DISP(op); in get_step_address()
93 addr = linux_regs->pc + 4 in get_step_address()
94 + linux_regs->regs[OPCODE_BRAF_REG(op)]; in get_step_address()
98 addr = linux_regs->pc + 4 + OPCODE_BSR_DISP(op); in get_step_address()
102 addr = linux_regs->pc + 4 in get_step_address()
103 + linux_regs->regs[OPCODE_BSRF_REG(op)]; in get_step_address()
107 addr = linux_regs->regs[OPCODE_JMP_REG(op)]; in get_step_address()
111 addr = linux_regs->regs[OPCODE_JSR_REG(op)]; in get_step_address()
115 addr = linux_regs->pr; in get_step_address()
119 addr = linux_regs->regs[15]; in get_step_address()
123 addr = linux_regs->pc + instruction_size(op); in get_step_address()
141 static void do_single_step(struct pt_regs *linux_regs) in do_single_step() argument
144 unsigned short *addr = get_step_address(linux_regs); in do_single_step()
158 static void undo_single_step(struct pt_regs *linux_regs) in undo_single_step() argument
257 struct pt_regs *linux_regs) in kgdb_arch_handle_exception() argument
263 undo_single_step(linux_regs); in kgdb_arch_handle_exception()
271 linux_regs->pc = addr; in kgdb_arch_handle_exception()
277 do_single_step(linux_regs); in kgdb_arch_handle_exception()