On 10 September 2013 22:34, Stefan Weil <s...@weilnetz.de> wrote: > For native compilations, TCG_TARGET_CALL_ALIGN_ARGS can be set from > configure. > Cross compilations cannot set that macro automatically (or is there some > way to > do this?), so a configure option is needed if the cross target is unknown.
I think setting TCG_TARGET_CALL_ALIGN_ARGS will work only by fluke and in some cases. For TCI you need to either: * really call each C function by its proper prototype (probably with something funky to pull this out of our existing macro definitions of helpers) * use libffi or some equivalent to get the calling convention right for you -- PMM