MCPcopy Create free account
hub / github.com/F-Stack/f-stack / branch_taken

Function branch_taken

freebsd/mips/mips/db_interface.c:339–349  ·  view source on GitHub ↗

* Return the next pc if the given branch is taken. * MachEmulateBranch() runs analysis for branch delay slot. */

Source from the content-addressed store, hash-verified

337 * MachEmulateBranch() runs analysis for branch delay slot.
338 */
339db_addr_t
340branch_taken(int inst, db_addr_t pc)
341{
342 db_addr_t ra;
343 register_t fpucsr;
344
345 /* TBD: when is fsr set */
346 fpucsr = (curthread) ? curthread->td_pcb->pcb_regs.fsr : 0;
347 ra = (db_addr_t)MipsEmulateBranch(kdb_frame, pc, fpucsr, 0);
348 return (ra);
349}

Callers

nothing calls this directly

Calls 1

MipsEmulateBranchFunction · 0.85

Tested by

no test coverage detected