From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MrC80-0006TI-Mg for qemu-devel@nongnu.org; Fri, 25 Sep 2009 10:50:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MrC80-0006T6-7V for qemu-devel@nongnu.org; Fri, 25 Sep 2009 10:50:32 -0400 Received: from [199.232.76.173] (port=33629 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MrC80-0006T3-4m for qemu-devel@nongnu.org; Fri, 25 Sep 2009 10:50:32 -0400 Received: from fg-out-1718.google.com ([72.14.220.153]:1906) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MrC7z-0005hy-Ha for qemu-devel@nongnu.org; Fri, 25 Sep 2009 10:50:31 -0400 Received: by fg-out-1718.google.com with SMTP id d23so875309fga.10 for ; Fri, 25 Sep 2009 07:50:30 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4ABCD30F.5090402@mlbassoc.com> References: <4ABCD30F.5090402@mlbassoc.com> Date: Fri, 25 Sep 2009 16:50:30 +0200 Message-ID: <761ea48b0909250750l3616981av91902de913512050@mail.gmail.com> From: Laurent Desnogues Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] Re: Qemu ARM tcg problem List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gary Thomas Cc: Qemu Development On Fri, Sep 25, 2009 at 4:26 PM, Gary Thomas wrote: > Laurent, > > If I build with --enable-debug, I get an assertion on this line > tcg/tcg.c: 983 =A0 assert(oarg < def->nb_oargs); > > This happens because of this definition > tcg/arm/tcg-target.c: 1593 =A0 =A0 { 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