Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DYLbW-0006iG-SL for qemu-devel@nongnu.org; Wed, 18 May 2005 06:16:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DYLbV-0006hZ-EL for qemu-devel@nongnu.org; Wed, 18 May 2005 06:16:41 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DYLZM-0006Cz-IC for qemu-devel@nongnu.org; Wed, 18 May 2005 06:14:28 -0400 Received: from [212.16.62.50] (helo=mail.13thfloor.at) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DYLZg-0003RI-Tq for qemu-devel@nongnu.org; Wed, 18 May 2005 06:14:49 -0400 Date: Wed, 18 May 2005 12:06:34 +0200 From: Herbert Poetzl Subject: Re: [Qemu-devel] [patch] gcc4 host support Message-ID: <20050518100634.GC30476@MAIL.13thfloor.at> References: <200505112204.10204.paul@codesourcery.com> <1116236492.25594.23.camel@localhost.localdomain> <200505172146.31089.paul@codesourcery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200505172146.31089.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: David Woodhouse , qemu-devel@nongnu.org On Tue, May 17, 2005 at 09:46:30PM +0100, Paul Brook wrote: > On Monday 16 May 2005 10:41, David Woodhouse wrote: > > On Wed, 2005-05-11 at 22:04 +0100, Paul Brook wrote: > > > My solution is to search the function for the "ret" instruction and > > > replace them with a jmp to the next block of code. On RISC targets this > > > would be easy. > > > > About this easy, in fact... > >... > > + > > + if (get32((uint32_t *)p) == 0x4e800020) { > > + blr_addr = p; > > + copy_size = p_end - p_start; > > + break; > > + } > > You probably want to scan the whole function to check there aren't multiple > blr instructions, and throw an error if there are. hmm, wouldn't it be much easier to separate compiling from assembling, and do the 'changes' on the assembler files instead? just an idea ... best, Herbert > Other than that it looks ok to me. > > Paul > > > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel