qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC] TCI for ARM and other hosts with aligned args (wa


From: Peter Maydell
Subject: Re: [Qemu-devel] [RFC] TCI for ARM and other hosts with aligned args (was: Re: [RFC] TCG unit testing)
Date: Tue, 10 Sep 2013 22:57:37 +0100

On 10 September 2013 22:34, Stefan Weil <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]