Fix the calculation of next_pc for braf/bsrf instructions.

This commit is contained in:
uwe 2004-05-28 22:04:36 +00:00
parent 5369712097
commit ae04b1322a
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ shnbsd_get_next_pc (CORE_ADDR pc)
{
displacement = read_register (BRANCH_FAR_REG(insn));
/* XXX: cannot step through delay slot, so break at the target */
next_pc = pc + displacement;
next_pc = pc + 4 + displacement;
}
/* JMP, JSR */