dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dotgnu-pnet-commits] libjit ChangeLog jit/jit-apply-x86-64.h


From: Klaus Treichel
Subject: [dotgnu-pnet-commits] libjit ChangeLog jit/jit-apply-x86-64.h
Date: Mon, 31 Dec 2007 13:42:10 +0000

CVSROOT:        /cvsroot/dotgnu-pnet
Module name:    libjit
Changes by:     Klaus Treichel <ktreichel>      07/12/31 13:42:10

Modified files:
        .              : ChangeLog 
        jit            : jit-apply-x86-64.h 

Log message:
        Fix the call to jit_memcpy in jit_builtin_apply.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libjit/ChangeLog?cvsroot=dotgnu-pnet&r1=1.332&r2=1.333
http://cvs.savannah.gnu.org/viewcvs/libjit/jit/jit-apply-x86-64.h?cvsroot=dotgnu-pnet&r1=1.3&r2=1.4

Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/dotgnu-pnet/libjit/ChangeLog,v
retrieving revision 1.332
retrieving revision 1.333
diff -u -b -r1.332 -r1.333
--- ChangeLog   29 Dec 2007 04:05:35 -0000      1.332
+++ ChangeLog   31 Dec 2007 13:42:09 -0000      1.333
@@ -1,3 +1,8 @@
+2007-12-31  Klaus Treichel  <address@hidden>
+
+       * jit/jit-apply-x86-64.h: Swap source and destination for the call of
+       jit_memcpy in jit_builtin_apply so that they are in the correct order.
+
 2007-12-28  Aleksey Demakov  <address@hidden>
 
        * jit/jit-interp.c: fix JIT_OP_LCMP_UN opcode.

Index: jit/jit-apply-x86-64.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/libjit/jit/jit-apply-x86-64.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- jit/jit-apply-x86-64.h      16 Dec 2007 11:46:54 -0000      1.3
+++ jit/jit-apply-x86-64.h      31 Dec 2007 13:42:10 -0000      1.4
@@ -49,9 +49,9 @@
 
 /*
  * We have to add all registers not saved by the caller to the clobber list
- * and not only the registers used for parameter passing because we do
- * function calls.
- * Maybe we should add the xmm* registers too?
+ * and not only the registers used for parameter passing because we call
+ * arbitrary functions.
+ * Maybe we should add the mmx* registers too?
  */
 #define        jit_builtin_apply(func,args,size,return_float,return_buf)       
\
                do { \
@@ -62,10 +62,10 @@
                        (return_buf) = __return_buf; \
                        __asm__ ( \
                                "movq %1, %%rax\n\t" \
-                               "movq (%%rax), %%rdi\n\t" \
+                               "movq (%%rax), %%rsi\n\t" \
                                "movq %2, %%rdx\n\t" \
                                "subq %%rdx, %%rsp\n\t" \
-                               "movq %%rsp, %%rsi\n\t" \
+                               "movq %%rsp, %%rdi\n\t" \
                                "callq " JIT_MEMCPY "\n\t" \
                                "movq %1, %%rax\n\t" \
                                "movq 0x08(%%rax), %%rdi\n\t" \




reply via email to

[Prev in Thread] Current Thread [Next in Thread]