From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JThDT-0002y9-Fl for qemu-devel@nongnu.org; Mon, 25 Feb 2008 12:34:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JThDO-0002xx-1T for qemu-devel@nongnu.org; Mon, 25 Feb 2008 12:34:14 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JThDN-0002xu-SD for qemu-devel@nongnu.org; Mon, 25 Feb 2008 12:34:09 -0500 Received: from nan.false.org ([208.75.86.248]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JThDN-0003Gh-LK for qemu-devel@nongnu.org; Mon, 25 Feb 2008 12:34:09 -0500 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id A81B698118 for ; Mon, 25 Feb 2008 17:34:07 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 6D6BA9801D for ; Mon, 25 Feb 2008 17:34:07 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JThDK-0000Q9-Cb for qemu-devel@nongnu.org; Mon, 25 Feb 2008 12:34:06 -0500 Date: Mon, 25 Feb 2008 12:34:06 -0500 From: Daniel Jacobowitz Subject: Re: [Qemu-devel] [ARM] add with PC in argument Message-ID: <20080225173406.GA1601@caradoc.them.org> References: <47C169A0.1020705@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47C169A0.1020705@wanadoo.fr> 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 Sun, Feb 24, 2008 at 01:57:04PM +0100, claude vittoria wrote: > Hello, > > I got a problem in an IRQ handler of mutek OS > (https://www-asim.lip6.fr/trac/mutekh), target ARM Integrator/CM > 922T-XA10. I try to port it on Qemu. A porting has been done for Skyeyes > > So in qemu I don't get the same comportement. The add of lr = pc + 4 > gives lr = pc + 8 into qemu. > I think that s->pc += 4 at start of disas_arm_insn alters the result. > Could you confirm ? All ARM mode instructions (at least, on modern ARMs) read PC as current instruction + 8. The code you've posted looks wrong. IIRC there were some older ARM processors with a different value. -- Daniel Jacobowitz CodeSourcery