Author: zoltan
Date: 2006-10-17 13:46:22 -0400 (Tue, 17 Oct 2006)
New Revision: 66756

Modified:
   trunk/mono/mono/mini/ChangeLog
   trunk/mono/mono/mini/exceptions-sparc.c
   trunk/mono/mono/mini/mini-exceptions.c
   trunk/mono/mono/mini/mini-sparc.c
Log:
2006-10-17  Zoltan Varga  <[EMAIL PROTECTED]>

        * exceptions-sparc.c: Call mono_arch_flush_icache () in a couple of 
places.

        * mini-sparc.c (mono_sparc_flushw): Call mono_arch_flush_icache ().

        * mini-exceptions.c: Add proper include files for getpid ().


Modified: trunk/mono/mono/mini/ChangeLog
===================================================================
--- trunk/mono/mono/mini/ChangeLog      2006-10-17 16:50:08 UTC (rev 66755)
+++ trunk/mono/mono/mini/ChangeLog      2006-10-17 17:46:22 UTC (rev 66756)
@@ -1,3 +1,11 @@
+2006-10-17  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * exceptions-sparc.c: Call mono_arch_flush_icache () in a couple of 
places.
+
+       * mini-sparc.c (mono_sparc_flushw): Call mono_arch_flush_icache ().
+
+       * mini-exceptions.c: Add proper include files for getpid ().
+
 2006-10-16  Zoltan Varga  <[EMAIL PROTECTED]>
 
        * aot-runtime.c (mono_aot_get_method): Change this to return the native 
code

Modified: trunk/mono/mono/mini/exceptions-sparc.c
===================================================================
--- trunk/mono/mono/mini/exceptions-sparc.c     2006-10-17 16:50:08 UTC (rev 
66755)
+++ trunk/mono/mono/mini/exceptions-sparc.c     2006-10-17 17:46:22 UTC (rev 
66756)
@@ -59,6 +59,8 @@
 
        g_assert ((code - start) < 32);
 
+       mono_arch_flush_icache ((guint8*)start, (guint8*)code - (guint8*)start);
+
        inited = 1;
 
        return start;
@@ -146,6 +148,8 @@
 
        g_assert ((code - start) < 64);
 
+       mono_arch_flush_icache ((guint8*)start, (guint8*)code - (guint8*)start);
+
        inited = 1;
 
        return start;
@@ -197,6 +201,8 @@
 
        g_assert ((code - start) <= 16);
 
+       mono_arch_flush_icache ((guint8*)start, (guint8*)code - (guint8*)start);
+
        return start;
 }
 
@@ -287,6 +293,8 @@
 
        g_assert ((code - start) < 32);
 
+       mono_arch_flush_icache ((guint8*)start, (guint8*)code - (guint8*)start);
+
        return start;
 }
 
@@ -344,6 +352,8 @@
 
        g_assert ((code - start) < 32);
 
+       mono_arch_flush_icache ((guint8*)start, (guint8*)code - (guint8*)start);
+
        return start;
 }
 

Modified: trunk/mono/mono/mini/mini-exceptions.c
===================================================================
--- trunk/mono/mono/mini/mini-exceptions.c      2006-10-17 16:50:08 UTC (rev 
66755)
+++ trunk/mono/mono/mini/mini-exceptions.c      2006-10-17 17:46:22 UTC (rev 
66756)
@@ -16,6 +16,11 @@
 #include <execinfo.h>
 #endif
 
+#ifndef PLATFORM_WIN32
+#include <sys/types.h>
+#include <unistd.h>
+#endif
+
 #include <mono/metadata/appdomain.h>
 #include <mono/metadata/tabledefs.h>
 #include <mono/metadata/threads.h>

Modified: trunk/mono/mono/mini/mini-sparc.c
===================================================================
--- trunk/mono/mono/mini/mini-sparc.c   2006-10-17 16:50:08 UTC (rev 66755)
+++ trunk/mono/mono/mini/mini-sparc.c   2006-10-17 17:46:22 UTC (rev 66756)
@@ -316,6 +316,8 @@
 
                g_assert ((code - start) < 64);
 
+               mono_arch_flush_icache ((guint8*)start, (guint8*)code - 
(guint8*)start);
+
                flushw = (gpointer)start;
 
                inited = 1;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to