Skip to contentSkip to conversation

tcg_abort()

Qemu-devel Gary Thomas 3 participants 9 messages Sep 16, 2009 – Sep 28, 2009

lore
Share & tools
lore
#0 lore raw

I've run into some of these in arm/tcg-target.c

Can someone explain why they are there and how I can get past them?

Thanks

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#1 lore raw
Quoted 3 lines · Gary Thomas

I've run into some of these in arm/tcg-target.c

Can someone explain why they are there and how I can get past them?

Not if you don't provide more information such as:

- QEMU version
- abort line
- how to reproduce the issue

Laurent

#2 lore raw
Quoted 8 lines · Laurent Desnogues
Quoted 3 lines · Gary Thomas

I've run into some of these in arm/tcg-target.c

Can someone explain why they are there and how I can get past them?

Not if you don't provide more information such as:

- QEMU version

Today's version from GIT

Quoted 1 line

- abort line

/qemu-git-2009_09_16/tcg/arm/tcg-target.c:773: tcg fatal error

Quoted 1 line

- 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?

Thanks

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#3 lore raw

On Wed, Sep 16, 2009 at 5:46 PM, Gary Thomas <[email protected]> wrote:
[...]

Quoted 8 lines

/qemu-git-2009_09_16/tcg/arm/tcg-target.c:773: tcg fatal error

Quoted 1 line

  - 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.

Quoted 8 lines

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 :-)

Laurent

#4 lore raw
Quoted 23 lines · Laurent Desnogues

On Wed, Sep 16, 2009 at 5:46 PM, Gary Thomas<[email protected]> wrote:
[...]

Quoted 8 lines

/qemu-git-2009_09_16/tcg/arm/tcg-target.c:773: tcg fatal error

Quoted 1 line

- 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.

Quoted 8 lines

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).

Quoted 7 lines

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

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#5 lore raw

On Wed, Sep 16, 2009 at 8:22 PM, Gary Thomas <[email protected]> wrote:
[...]

Quoted 9 lines
Quoted 7 lines

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.

Nice! Thanks for testing it.

Laurent

#6 lore raw
In reply to Laurent Desnogues
Quoted 23 lines · Laurent Desnogues

On Wed, Sep 16, 2009 at 5:46 PM, Gary Thomas <[email protected]> wrote:
[...]

Quoted 8 lines

/qemu-git-2009_09_16/tcg/arm/tcg-target.c:773: tcg fatal error

Quoted 1 line

  - 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.

Quoted 8 lines

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).

Quoted 7 lines

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 :-)

Turned out this was wrong, it should have been:

        tcg_out_movi32(s, cond, TCG_REG_R8, addr);
        tcg_out32(s, (cond << 28) | 0x012fff30 | TCG_REG_R8); /* blx r8 */

Laurent

#7 lore raw
Quoted 7 lines
Quoted 2 lines

Could please try to replace the tcg_abort() on line 773 with these two lines?

Turned out this was wrong, it should have been:

        tcg_out_movi32(s, cond, TCG_REG_R8, addr);
        tcg_out32(s, (cond << 28) | 0x012fff30 | TCG_REG_R8); /* blx r8 */

You can not assume blx is available.

Paul

#8 lore raw
Quoted 9 lines · Paul Brook
Quoted 7 lines
Quoted 2 lines

Could please try to replace the tcg_abort() on line 773 with these two lines?

Turned out this was wrong, it should have been:

        tcg_out_movi32(s, cond, TCG_REG_R8, addr); tcg_out32(s, (cond << 28) | 0x012fff30 | TCG_REG_R8); /* blx r8 */

You can not assume blx is available.

Which is why this wasn't proposed as a patch :-)

Laurent