harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r531430 - /harmony/enhanced/drlvm/trunk/vm/jitrino/src/shared/mkernel.cpp
Date Mon, 23 Apr 2007 11:07:58 GMT
Author: gshimansky
Date: Mon Apr 23 04:07:50 2007
New Revision: 531430

URL: http://svn.apache.org/viewvc?view=rev&rev=531430
Log:
Applied HARMONY-3721 [drlvm][jit] JET crashes in deep recursion if started with JVMTI agent


Modified:
    harmony/enhanced/drlvm/trunk/vm/jitrino/src/shared/mkernel.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/jitrino/src/shared/mkernel.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/jitrino/src/shared/mkernel.cpp?view=diff&rev=531430&r1=531429&r2=531430
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/jitrino/src/shared/mkernel.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/jitrino/src/shared/mkernel.cpp Mon Apr 23 04:07:50 2007
@@ -205,8 +205,17 @@
         cpuid
         mov    fflags, edx
     };
-#elif PLAFTFORM_POSIX
-    __asm__ __volatile__ ("cpuid":"=d" (fflags) : "a" (0x1));
+#elif PLATFORM_POSIX
+    unsigned int stub;
+
+     __asm__ __volatile__ (
+            "push %%ebx; cpuid; mov %%ebx, %%edi; pop %%ebx" :
+                "=a" (stub),
+                "=D" (stub),
+                "=c" (stub),
+                "=d" (fflags) : "a" (0x1));
+#else
+#error 0  
 #endif
     bool res = ((fflags & (1<<26))!=0);
     return res;



Mime
View raw message