* Return the next pc if the given branch is taken. * MachEmulateBranch() runs analysis for branch delay slot. */
| 337 | * MachEmulateBranch() runs analysis for branch delay slot. |
| 338 | */ |
| 339 | db_addr_t |
| 340 | branch_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 | } |
nothing calls this directly
no test coverage detected