3 * This file is subject to the terms and conditions of the GNU General Public
4 * License. See the file "COPYING" in the main directory of this archive
7 * Branch and jump emulation.
9 * Copyright (C) 1996, 1997, 1998, 1999 by Ralf Baechle
11 #include <asm/ptrace.h>
13 extern inline int delay_slot(struct pt_regs
*regs
)
15 return regs
->cp0_cause
& CAUSEF_BD
;
18 extern int __compute_return_epc(struct pt_regs
*regs
);
20 extern inline int compute_return_epc(struct pt_regs
*regs
)
22 if (!delay_slot(regs
)) {
27 return __compute_return_epc(regs
);