[kaffe] CVS kaffe (hkraemer): fix asm statement for arm soft float

Kaffe CVS cvs-commits at kaffe.org
Wed Oct 20 09:21:54 PDT 2004


PatchSet 5314 
Date: 2004/10/20 16:17:48
Author: hkraemer
Branch: HEAD
Tag: (none) 
Log:
fix asm statement for arm soft float

Members: 
	ChangeLog:1.2866->1.2867 
	config/arm/sysdepCallMethod.h:1.6->1.7 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2866 kaffe/ChangeLog:1.2867
--- kaffe/ChangeLog:1.2866	Wed Oct 20 07:58:53 2004
+++ kaffe/ChangeLog	Wed Oct 20 16:17:48 2004
@@ -1,3 +1,8 @@
+2004-10-20  Helmer Kraemer  <hkraemer at freenet.de>
+
+	* config/arm/sysdepCallMethod.h (sysdepCallMethod): fix
+	asm statement for soft float
+
 2004-10-20  Timothy S. Stack <stack at cs.utah.edu>
 
 	* FAQ/FAQ.debugging: Added information for
Index: kaffe/config/arm/sysdepCallMethod.h
diff -u kaffe/config/arm/sysdepCallMethod.h:1.6 kaffe/config/arm/sysdepCallMethod.h:1.7
--- kaffe/config/arm/sysdepCallMethod.h:1.6	Tue Oct 19 17:18:26 2004
+++ kaffe/config/arm/sysdepCallMethod.h	Wed Oct 20 16:17:47 2004
@@ -60,15 +60,21 @@
   case 1:
     r0 = call->args[0].i;
   case 0:
+#ifdef __SOFTFP__
     asm volatile ("mov lr, pc\n"
-"                    mov pc, %3\n"
+"                  mov pc, %2\n"
                   : "=r" (r0), "=r" (r1)
-#ifndef __SOFTFP__
-		                        , "=f" (f0)
-#endif
                   : "r" (call->function),
                     "0" (r0), "1" (r1), "r" (r2), "r" (r3)
                   : "ip", "lr");
+#else
+    asm volatile ("mov lr, pc\n"
+"                    mov pc, %3\n"
+                  : "=r" (r0), "=r" (r1), "=f" (f0)
+                  : "r" (call->function),
+                    "0" (r0), "1" (r1), "r" (r2), "r" (r3)
+                  : "ip", "lr");
+#endif
     switch (call->rettype)
     {
     case 'V':




More information about the kaffe mailing list