From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJVwh-0002uR-W3 for qemu-devel@nongnu.org; Tue, 10 Sep 2013 17:58:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJVwd-0003Sa-4M for qemu-devel@nongnu.org; Tue, 10 Sep 2013 17:58:03 -0400 Received: from mail-la0-f41.google.com ([209.85.215.41]:62241) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJVwc-0003RD-T4 for qemu-devel@nongnu.org; Tue, 10 Sep 2013 17:57:59 -0400 Received: by mail-la0-f41.google.com with SMTP id ec20so6884739lab.0 for ; Tue, 10 Sep 2013 14:57:57 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <522F907F.4090600@weilnetz.de> References: <5217BC5F.4060306@twiddle.net> <5217C94F.6010607@weilnetz.de> <5217D1A7.6000003@twiddle.net> <522F907F.4090600@weilnetz.de> From: Peter Maydell Date: Tue, 10 Sep 2013 22:57:37 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [RFC] TCI for ARM and other hosts with aligned args (was: Re: [RFC] TCG unit testing) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: qemu-devel , Aurelien Jarno , Richard Henderson On 10 September 2013 22:34, Stefan Weil 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