[Mono-dev] [PATCH] fix support for small struct in regs for

Rodrigo Kumpera kumpera at gmail.com
Thu May 21 00:02:12 EDT 2009


Hey Zoltan,

Attached is a stretch of the fix to support 8 bytes structs in regs on x86.

What I noticed from the current code is that mono_decompose_vtype_opts
doesn't have a clue on which regs the return value is presented.
It works by pure luck since both amd64 and x86 uses EAX/RAX (0) for the
first one.

But to proper support return in a reg pair we need to give it such
knowledge.

The attached patch is not final and still requires something like a
mono_arch_get_vret_reg to inform mono_decompose_vtype_opts about the regs to
use.

Please review it so I know if this is the right approach and can proceed
with finishing it.

Thanks,
Rodrigo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090521/b55e7cc7/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: struct_in_small_regs.diff
Type: application/octet-stream
Size: 5017 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090521/b55e7cc7/attachment-0001.obj 


More information about the Mono-devel-list mailing list