PERFORCE change 100871 for review
Wojciech A. Koszek
wkoszek at FreeBSD.org
Fri Jul 7 12:30:24 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=100871
Change 100871 by wkoszek at 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.
More information about the p4-projects
mailing list