Author: lupus
Date: 2007-10-04 10:25:40 -0400 (Thu, 04 Oct 2007)
New Revision: 86882
Modified:
trunk/mono/mono/mini/ChangeLog
trunk/mono/mono/mini/mini-mips.c
Log:
Thu Oct 4 16:38:27 CEST 2007 Paolo Molaro <[EMAIL PROTECTED]>
* mini-mips.h: endianess fix (simplified from a patch by
Thomas Kunze <[EMAIL PROTECTED]>, bug #323737).
Modified: trunk/mono/mono/mini/ChangeLog
===================================================================
--- trunk/mono/mono/mini/ChangeLog 2007-10-04 14:22:52 UTC (rev 86881)
+++ trunk/mono/mono/mini/ChangeLog 2007-10-04 14:25:40 UTC (rev 86882)
@@ -1,4 +1,9 @@
+Thu Oct 4 16:38:27 CEST 2007 Paolo Molaro <[EMAIL PROTECTED]>
+
+ * mini-mips.h: endianess fix (simplified from a patch by
+ Thomas Kunze <[EMAIL PROTECTED]>, bug #323737).
+
Thu Oct 4 14:43:49 CEST 2007 Paolo Molaro <[EMAIL PROTECTED]>
* exceptions-ppc.c, mini-ppc.h: refactor to use macros
Modified: trunk/mono/mono/mini/mini-mips.c
===================================================================
--- trunk/mono/mono/mini/mini-mips.c 2007-10-04 14:22:52 UTC (rev 86881)
+++ trunk/mono/mono/mini/mini-mips.c 2007-10-04 14:25:40 UTC (rev 86882)
@@ -245,10 +245,10 @@
fflush (stdout);
#endif
if (((guint32)(val)) & (1 << 15))
- __lui_addiu [1] = ((((guint32)(val)) >> 16) & 0xffff) + 1;
+ __lui_addiu [MINI_LS_WORD_IDX] = ((((guint32)(val)) >> 16) &
0xffff) + 1;
else
- __lui_addiu [1] = (((guint32)(val)) >> 16) & 0xffff;
- __lui_addiu [3] = ((guint32)(val)) & 0xffff;
+ __lui_addiu [MINI_LS_WORD_IDX] = (((guint32)(val)) >> 16) &
0xffff;
+ __lui_addiu [MINI_LS_WORD_IDX + 2] = ((guint32)(val)) & 0xffff;
mono_arch_flush_icache ((guint8 *)ip, 8);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches