From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mnz99-0002c7-6m for qemu-devel@nongnu.org; Wed, 16 Sep 2009 14:22:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mnz94-0002bt-Dn for qemu-devel@nongnu.org; Wed, 16 Sep 2009 14:22:25 -0400 Received: from [199.232.76.173] (port=46513 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mnz94-0002bo-7R for qemu-devel@nongnu.org; Wed, 16 Sep 2009 14:22:22 -0400 Received: from hermes.mlbassoc.com ([76.76.67.137]:38554 helo=mail.chez-thomas.org) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mnz93-0007Ff-U0 for qemu-devel@nongnu.org; Wed, 16 Sep 2009 14:22:22 -0400 Message-ID: <4AB12CDC.60505@mlbassoc.com> Date: Wed, 16 Sep 2009 12:22:20 -0600 From: Gary Thomas MIME-Version: 1.0 Subject: Re: [Qemu-devel] tcg_abort() References: <4AB1020A.1070807@mlbassoc.com> <761ea48b0909160831p3201956u79077c802e6c349a@mail.gmail.com> <4AB10857.2030403@mlbassoc.com> <761ea48b0909160916y21771671g9399ddf9983ac5c0@mail.gmail.com> In-Reply-To: <761ea48b0909160916y21771671g9399ddf9983ac5c0@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Desnogues Cc: qemu-devel@nongnu.org On 09/16/2009 10:16 AM, Laurent Desnogues wrote: > On Wed, Sep 16, 2009 at 5:46 PM, Gary Thomas wrote: > [...] >> >> /qemu-git-2009_09_16/tcg/arm/tcg-target.c:773: tcg fatal error >> >>> - how to reproduce the issue >> >> This one's harder - I'm running an x86 gnome application on an ARM >> system. I'm not sure exactly what it was doing when the abort happened. >> >> Questions: >> * The function in tcp-target.c seems complete, but it has >> #if 1 >> tcg_abort(); >> #endif >> which implies it's not complete or maybe just untested? >> * How can I gather more information about what was going on >> at the time to aid in fixing this? > > Your problem is probably due to generated code being too far from > the helper functions (the helper functions can be thought of as a > library). > > Could please try to replace the tcg_abort() on line 773 with these > two lines? > > tcg_out_movi32(s, cond, TCG_REG_R8, val); > tcg_out32(s, (cond<< 28) | 0x012fff30 | TCG_REG_R8); /* blx r8 */ > > I didn't test it, so you'll be my guinea pig :-) This does seem to work - at least I get farther along in the code. Thanks -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------