From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LGUTO-000459-E5 for qemu-devel@nongnu.org; Sat, 27 Dec 2008 03:24:38 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LGUTN-00044x-2I for qemu-devel@nongnu.org; Sat, 27 Dec 2008 03:24:37 -0500 Received: from [199.232.76.173] (port=39573 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LGUTM-00044u-T5 for qemu-devel@nongnu.org; Sat, 27 Dec 2008 03:24:36 -0500 Received: from fg-out-1718.google.com ([72.14.220.152]:19712) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LGUTM-0008Qz-Ig for qemu-devel@nongnu.org; Sat, 27 Dec 2008 03:24:36 -0500 Received: by fg-out-1718.google.com with SMTP id l26so1444605fgb.8 for ; Sat, 27 Dec 2008 00:24:35 -0800 (PST) Message-ID: <761ea48b0812270024t684c6258m3e6b1d46ef739833@mail.gmail.com> Date: Sat, 27 Dec 2008 09:24:35 +0100 From: "Laurent Desnogues" Subject: Re: [Qemu-devel] qemu-mips strange jump !!! In-Reply-To: <49552429.5050808@exit.it> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200812240123.mBO1N2NJ029937@fedora.exit.it> <49552429.5050808@exit.it> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Fri, Dec 26, 2008 at 7:36 PM, Alessandro Montano wrote: > This is my first post, so sorry for any error ... > I'm developing a DVB-S emulator based on qemu-mips. > I'm adding all the device, once a time, but I notice a strange problem that > crashes my emulator. > > It seems to do bad jumps! > > In brief ... I run this command > *./bin/-qemu-system-mips -L . mips_bios.bin -d int,exec,op,in_asm > *and it genereates this log > > IN: > 0x80071fc4: lui at,0x8007 > 0x80071fc8: lw a1,0xC094(at) > 0x80071fcc: lui a0,0x8007 > 0x80071fd0: addiu a0,a0,0xD060 > 0x80071fd4: jal 0x8006d76c <- this is the right address > 0x80071fd8: nop [...] > IN: > 0x8006d968: andi t9,t9,0xdf <- but this is a wrong jump !!! > 0x8006d96c: j 0x8006d90c > 0x8006d970: ori t9,t9,0x20 You can't rely on logs to see the flow of a program. What may happen in the logs you're showing is that the code @0x8006d76c may have been previously translated and so it isn't shown in the logs. I don't think what you're showing us is the real problem :) Laurent