Don't try to look back in the instruction stream beyound it's start

if an object file starts with a branch/call/jump instruction creating
a branch delay slot at offset < 8.
This commit is contained in:
martin 2003-02-02 01:15:42 +00:00
parent dc1d6c5fbd
commit 855375b3f6

View File

@ -698,7 +698,7 @@ print_insn_sparc (memaddr, info)
or %o1, %lo(_foo), %o1
*/
if (is_delayed_branch (prev_insn))
if (memaddr >= 8 && is_delayed_branch (prev_insn))
{
errcode = (*info->read_memory_func)
(memaddr - 8, buffer, sizeof (buffer), info);