Date: Fri, 7 Jul 2006 12:30:22 GMT From: "Wojciech A. Koszek" <wkoszek@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 100871 for review Message-ID: <200607071230.k67CUM4l005196@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=100871 Change 100871 by wkoszek@wkoszek_laptop on 2006/07/07 12:29:44 Fix branch_taken() as it's needed by MI code (db_interface.c stuff). Note we have no 'regs' anymore as the function's arguments. Affected files ... .. //depot/projects/mips2/src/sys/mips/mips/db_interface.c#4 edit Differences ... ==== //depot/projects/mips2/src/sys/mips/mips/db_interface.c#4 (text+ko) ==== @@ -608,18 +608,21 @@ * Return the next pc if the given branch is taken. * MachEmulateBranch() runs analysis for branch delay slot. */ -#if 0 db_addr_t -branch_taken(int inst, db_addr_t pc, db_regs_t *regs) +branch_taken(int inst, db_addr_t pc) { db_addr_t ra; unsigned long fpucsr; + ra = (db_addr_t) 0; + fpucsr = 0; +#if 0 fpucsr = curthread ? PCB_FSR(curthread->td_pcb) : 0; ra = MachEmulateBranch((struct frame *)regs, pc, fpucsr, 0); return ra; +#endif + return ((db_addr_t) 0); } -#endif /* * Return the next pc of an arbitrary instruction.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607071230.k67CUM4l005196>