From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JTGPk-0007Co-VM for qemu-devel@nongnu.org; Sun, 24 Feb 2008 07:57:08 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JTGPi-0007Cc-Ih for qemu-devel@nongnu.org; Sun, 24 Feb 2008 07:57:07 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTGPi-0007CZ-Cj for qemu-devel@nongnu.org; Sun, 24 Feb 2008 07:57:06 -0500 Received: from smtp3-g19.free.fr ([212.27.42.29]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JTGPi-0005yZ-7n for qemu-devel@nongnu.org; Sun, 24 Feb 2008 07:57:06 -0500 Received: from smtp3-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp3-g19.free.fr (Postfix) with ESMTP id 98ABF17B55A for ; Sun, 24 Feb 2008 13:57:03 +0100 (CET) Received: from [192.168.0.10] (wmh38-1-82-225-141-98.fbx.proxad.net [82.225.141.98]) by smtp3-g19.free.fr (Postfix) with ESMTP id 737BB17B553 for ; Sun, 24 Feb 2008 13:57:03 +0100 (CET) Message-ID: <47C169A0.1020705@wanadoo.fr> Date: Sun, 24 Feb 2008 13:57:04 +0100 From: claude vittoria MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [ARM] add with PC in argument 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 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 ? 0x7c add lr, pc, #4 0x80 ldr pc, =SystemInterrupt 0x84 ldr r3, [sp, #PSR_OFF] <= never executed in Qemu 0x88 msr spsr_cxsf, r3 @ put cpsr in SPSR 0x8c ldmia sp, {r0-r15}^ @ restore Context B.R. Claude