* src/vm/jit/m68k/asmpart.S (asm_vm_call_method): Do not overwrite return
[cacao.git] / src / vm / jit / m68k / asmpart.S
index 1a6ee282740e4d7fb408a7870f9cfe7618d1af73..25ea601e87978856510a16e48e7057291af8d620 100644 (file)
@@ -91,8 +91,8 @@ asm_vm_call_method_double:
        movel   %sp@(12*4+2*4),%a2                              /* arg array */
        movel   %sp@(12*4+3*4),%d2                              /* arg count */
 
-       movel   %a3, %sp@(12*4)                                 /* copy method address to stackslot */
-       leal    %sp@(12*4), %a3                                 /* and store that address in %a3 */
+       movel   %a3, %sp@(11*4)                                 /* copy method address to stackslot */
+       leal    %sp@(11*4), %a3                                 /* and store that address in %a3 */
 #else
        addal #(-12*4-6*8), %sp
        moveml  %d2/%d3/%d4/%d5/%d6/%d7/%a2/%a3/%a4/%a5/%fp,%sp@        /* save registers */
@@ -103,8 +103,8 @@ asm_vm_call_method_double:
        movel   %sp@(12*4+6*8+2*4),%a2                          /* arg array */
        movel   %sp@(12*4+6*8+3*4),%d2                          /* arg count */
 
-       movel   %a3, %sp@(12*4+6*8)                                     /* copy method address to stackslot */
-       leal    %sp@(12*4+6*8), %a3                                     /* and store that address in %a3 */
+       movel   %a3, %sp@(11*4+6*8)                                     /* copy method address to stackslot */
+       leal    %sp@(11*4+6*8), %a3                                     /* and store that address in %a3 */
 #endif
 
        moveal  %sp, %a5                                        /* memorize stack */