From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HRvku-00010A-W8 for qemu-devel@nongnu.org; Thu, 15 Mar 2007 15:36:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HRvkt-0000xt-IB for qemu-devel@nongnu.org; Thu, 15 Mar 2007 15:36:56 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HRvkt-0000xh-FP for qemu-devel@nongnu.org; Thu, 15 Mar 2007 14:36:55 -0500 Received: from smtp.nokia.com ([131.228.20.173] helo=mgw-ext14.nokia.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HRvjq-0005ZC-Ud for qemu-devel@nongnu.org; Thu, 15 Mar 2007 15:35:51 -0400 Received: from esebh106.NOE.Nokia.com (esebh106.ntc.nokia.com [172.21.138.213]) by mgw-ext14.nokia.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id l2FJZWUi015000 for ; Thu, 15 Mar 2007 21:35:44 +0200 From: Lauro Ramos Venancio Content-Type: text/plain Date: Thu, 15 Mar 2007 16:35:24 -0300 Message-Id: <1173987324.9939.0.camel@edgy-laptop> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] qemu-arm: wrong execution of post-indexed loads when Rm and Rd are the same register 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 Qemu-arm is wrongly executing post-indexed loads when Rm and Rd are the same register. For example: ldr r0, [r1], +r0 Current behavior: r0 <- [r1] r1 <- r1 + r0 Expected behavior: addr <- r1 r1 <- r1 + r0 r0 <- [addr] The attached patch fixes this bug. Patched by me and Rodrigo Vivi. This patch was made based on qemu 0.9. Lauro Venancio