From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19Mzzs-0007qL-OR for qemu-devel@nongnu.org; Mon, 02 Jun 2003 20:49:52 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19MzzP-00072y-Es for qemu-devel@nongnu.org; Mon, 02 Jun 2003 20:49:24 -0400 Received: from smtp8.wanadoo.fr ([193.252.22.30] helo=mwinf0102.wanadoo.fr) by monty-python.gnu.org with esmtp (Exim 4.20) id 19MzzM-0006wZ-Uz for qemu-devel@nongnu.org; Mon, 02 Jun 2003 20:49:21 -0400 Received: from free.fr (unknown [80.14.188.93]) by mwinf0102.wanadoo.fr (SMTP Server) with ESMTP id 280CD1BFFF81 for ; Tue, 3 Jun 2003 02:49:16 +0200 (CEST) Message-ID: <3EDBF085.6000308@free.fr> Date: Tue, 03 Jun 2003 02:49:09 +0200 From: Fabrice Bellard MIME-Version: 1.0 Subject: Re: [Qemu-devel] QEMU 0.2 is out References: <3ED409D1.6040109@free.fr> <873city82h.fsf@student.uni-tuebingen.de> <3EDBD53F.603@free.fr> <874r386p8k.fsf@student.uni-tuebingen.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , To: qemu-devel@nongnu.org Falk Hueffner wrote: > Fabrice Bellard writes: > > >>For Alpha: I am using gcc 3.2.3 and '-msmall-text' is not >>supported. Is it really necessary ? > > > Not really, I was just hoping to avoid a few gp readjustments with it, > however it doesn't really seem to have that effect, since for > non-static functions, that cannot be done, and for static functions, > gcc already knows to avoid gp restoring. Which version of gcc are you using ? Do you use a patched gcc ? Can you give me your spec file and the gcc -v log when you compile op-i386.c ? I am totally unable to get correct code. In particular, I cannot make gcc 3.2.3 generate R_ALPHA_BRADDR relocations. Currently, to get correct code, I must do the following: -- int __op_param1; #define PARAM1 ({ int _r; asm("ldah %0,__op_param1($29) !gprelhigh\n" \ "lda %0,__op_param1(%0) !gprellow" : "=r"(_r) ); _r; }) #define CALL(x) asm volatile ("bsr $26, %0" : : "i" (x)) -- and use the macro CALL to call a function! Fabrice.