From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D3KZt-0001Zz-5s for qemu-devel@nongnu.org; Mon, 21 Feb 2005 15:54:49 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D3KZd-0001L4-4g for qemu-devel@nongnu.org; Mon, 21 Feb 2005 15:54:33 -0500 Received: from [129.104.30.34] (helo=mx1.polytechnique.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D3K80-0006CZ-PF for qemu-devel@nongnu.org; Mon, 21 Feb 2005 15:26:01 -0500 Received: from [84.99.204.228] (228.204.99-84.rev.gaoland.net [84.99.204.228]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTP id C966D3316D for ; Mon, 21 Feb 2005 21:25:59 +0100 (CET) Message-ID: <421A441C.3000004@bellard.org> Date: Mon, 21 Feb 2005 21:27:08 +0100 From: Fabrice Bellard MIME-Version: 1.0 Subject: Re: [Qemu-devel] Patch to fix Mac OS X compilation References: <6a3c367237141a46e9d50c2806a212c0@elis.ugent.be> <67020f2e144efbf20ea9d0eb09315239@elis.ugent.be> <87491237e8d0eaafae0d0da9f45799de@elis.ugent.be> In-Reply-To: <87491237e8d0eaafae0d0da9f45799de@elis.ugent.be> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Jonas Maebe wrote: > At address 0x743ac, the branch to __op_gen_label1 gets patched so it > points to the basic block coming after the loopzw. In that case, LR does > not get restored (it was destroyed at 0x74394 by the bctrl), so the next > blr which gets executed returns to 0x74398. This causes an endless loop, > obviously. > > This does not seem to be Mac OS X-specific at all, and should also > happen under Linux/ppc I think. I just made a fix. Tell me if you see other problems... Fabrice.