qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] tcg_abort()


From: Gary Thomas
Subject: Re: [Qemu-devel] tcg_abort()
Date: Wed, 16 Sep 2009 12:22:20 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Thunderbird/3.0b3

On 09/16/2009 10:16 AM, Laurent Desnogues wrote:
On Wed, Sep 16, 2009 at 5:46 PM, Gary Thomas<address@hidden>  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
------------------------------------------------------------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]