qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Qemu ARM tcg problem
@ 2009-09-25 14:26 Gary Thomas
  2009-09-25 14:50 ` [Qemu-devel] " Laurent Desnogues
  0 siblings, 1 reply; 2+ messages in thread
From: Gary Thomas @ 2009-09-25 14:26 UTC (permalink / raw)
  To: Laurent Desnogues; +Cc: Qemu Development

Laurent,

If I build with --enable-debug, I get an assertion on this line
tcg/tcg.c: 983   assert(oarg < def->nb_oargs);

This happens because of this definition
tcg/arm/tcg-target.c: 1593     { INDEX_op_div2_i32, { "r", "r", "r", "1", "2" } },

I'm not sure I totally understand these tables, but the assertion
says that they may not be correct.

Any clues??

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Qemu-devel] Re: Qemu ARM tcg problem
  2009-09-25 14:26 [Qemu-devel] Qemu ARM tcg problem Gary Thomas
@ 2009-09-25 14:50 ` Laurent Desnogues
  0 siblings, 0 replies; 2+ messages in thread
From: Laurent Desnogues @ 2009-09-25 14:50 UTC (permalink / raw)
  To: Gary Thomas; +Cc: Qemu Development

On Fri, Sep 25, 2009 at 4:26 PM, Gary Thomas <gary@mlbassoc.com> wrote:
> Laurent,
>
> If I build with --enable-debug, I get an assertion on this line
> tcg/tcg.c: 983   assert(oarg < def->nb_oargs);
>
> This happens because of this definition
> tcg/arm/tcg-target.c: 1593     { INDEX_op_div2_i32, { "r", "r", "r", "1",
> "2" } },
>
> I'm not sure I totally understand these tables, but the assertion
> says that they may not be correct.
>
> Any clues??

This is buggy for sure.  Anyway given the associated generated
code also is buggy, my only advice for your needs is to remove
op_div2 and op_divu2 from arm_op_defs.  For you that'll be OK
since the i386 front-end doesn't generated these ops.

For the real fix, we'll see if anyone ever really needs it :-)


Laurent

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-25 14:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-25 14:26 [Qemu-devel] Qemu ARM tcg problem Gary Thomas
2009-09-25 14:50 ` [Qemu-devel] " Laurent Desnogues

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).