* sim/mips/gencode.c (build_instruction): Don't need to subtract 4 for

JALR, just 2.
This commit is contained in:
Gavin Romig-Koch 1997-09-16 20:01:00 +00:00
parent 41f19f2b99
commit 667065d0d4
2 changed files with 7 additions and 1 deletions

View file

@ -2532,7 +2532,8 @@ build_instruction (doisa, features, mips16, insn)
printf(" op1 = WORD64LO(op1);\n");
printf(" /* NOTE: The jump occurs AFTER the next instruction has been executed */\n");
printf(" DSPC = op1;\n");
if (insn->flags & LINK)
if ((insn->flags & LINK)
&& ! (insn->flags & REG))
printf(" JALDELAYSLOT();\n");
else
printf(" DELAYSLOT();\n");