[Mono-dev] Mono svn and ppc

Steven Munroe munroesj at us.ibm.com
Thu Dec 18 21:27:14 EST 2008


Paul wrote:
> Hi,
>
> Is mono svn working yet with ppc (not ppc64)? I had to disable it for
> fedora rawhide as there is a signing problem on PPC which looks to have
> come from a revision at 121203.
>   

found the bug. The update to mini-ppc.c (emit_memcpy) replaced ppc_lwzu
macro with ppc_load_reg_update, but the definition of 
ppc_load_reg_update for PPC32 in ppc-codegen.h did not account for
reorders parms (ppc_lwz (c, Rd, d, Ra) vs lwzu (c, Rd, Ra, d)).

Net: ppc_lwz is in assembler operand order while ppc_lwzu is instuction
field order. The lhzu, lhau, lha, lbzu follow the lwzu form. The rest of
the loads and stores follow the ppc_pwz form.

In the long run we should make these consistent but in the short term
the attached patch will get the PPC32 mono build working again.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ppc-lwzu-codegen-20081218.patch
Type: text/x-patch
Size: 809 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20081218/46e4c999/attachment.bin 


More information about the Mono-devel-list mailing list