From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MnxB2-0008Gk-TJ for qemu-devel@nongnu.org; Wed, 16 Sep 2009 12:16:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MnxB2-0008GV-9W for qemu-devel@nongnu.org; Wed, 16 Sep 2009 12:16:16 -0400 Received: from [199.232.76.173] (port=40683 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnxB2-0008GQ-75 for qemu-devel@nongnu.org; Wed, 16 Sep 2009 12:16:16 -0400 Received: from fg-out-1718.google.com ([72.14.220.152]:29492) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MnxB1-0000ph-U2 for qemu-devel@nongnu.org; Wed, 16 Sep 2009 12:16:16 -0400 Received: by fg-out-1718.google.com with SMTP id e21so1075434fga.10 for ; Wed, 16 Sep 2009 09:16:15 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4AB10857.2030403@mlbassoc.com> References: <4AB1020A.1070807@mlbassoc.com> <761ea48b0909160831p3201956u79077c802e6c349a@mail.gmail.com> <4AB10857.2030403@mlbassoc.com> Date: Wed, 16 Sep 2009 18:16:14 +0200 Message-ID: <761ea48b0909160916y21771671g9399ddf9983ac5c0@mail.gmail.com> Subject: Re: [Qemu-devel] tcg_abort() From: Laurent Desnogues Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gary Thomas Cc: qemu-devel@nongnu.org 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 > >> =A0 - how to reproduce the issue > > This one's harder - I'm running an x86 gnome application on an ARM > system. =A0I'm not sure exactly what it was doing when the abort happened= . > > Questions: > =A0* The function in tcp-target.c seems complete, but it has > =A0 =A0 =A0#if 1 > =A0 =A0 =A0 =A0tcg_abort(); > =A0 =A0 =A0#endif > =A0 =A0which implies it's not complete or maybe just untested? > =A0* How can I gather more information about what was going on > =A0 =A0at 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 :-) Laurent