[Mono-bugs] [Bug 58279][Nor] Changed - 0.91: PowerPC JIT SIGILLs when building libs

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 21 May 2004 16:12:43 -0400 (EDT)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by od@suse.de.


--- shadow/58279	2004-05-21 14:47:01.000000000 -0400
+++ shadow/58279.tmp.3654	2004-05-21 16:12:43.000000000 -0400
@@ -449,6 +449,12 @@
 The mcrxr instruction is being phased out. It does not exist on any of 
 our POWER 4 architecture machines. 
 To avoid software emulation of the instruction, please consider using 
 the CR register directly (by setting Rc=1 in the opcodes that support 
+------- Additional Comments From od@suse.de  2004-05-21 16:12 -------
+Scanning through mini/mini-ppc.c, it seems you only need "mcrxr 0" (i.e. 
+"ppc_mcrxr (code, 0);"). If you have a spare register, an easy replacement 
+seems to be "mfxer  Rx" and "mtocrf 0, Rx" (i.e. with your current set of 
+macros: "ppc_mfspr  (code, <x>, ppc_xer);" and "ppc_mtcrf (code, 0x1, <x>);").