Browse Source

Fix set of frame poointer value for big local stack size

git-svn-id: trunk@21802 -
pierre 13 years ago
parent
commit
6f12197d3b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/mips/cgcpu.pas

+ 1 - 1
compiler/mips/cgcpu.pas

@@ -1512,7 +1512,7 @@ begin
           list.concat(framesave);
           if cs_asm_source in current_settings.globalswitches then
             list.concat(tai_comment.Create(strpnew('Frame register updated to $SP+R9 value')));
-          list.concat(Taicpu.op_reg_reg_reg(A_ADDU,NR_FRAME_POINTER_REG,
+          list.concat(Taicpu.op_reg_reg_reg(A_SUBU,NR_FRAME_POINTER_REG,
             NR_STACK_POINTER_REG,NR_R9));
         end;
 	  { The instructions before are macros that can extend to multiple instructions,