From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HRwBf-0004Qm-Ns for qemu-devel@nongnu.org; Thu, 15 Mar 2007 16:04:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HRwBd-0004LA-C4 for qemu-devel@nongnu.org; Thu, 15 Mar 2007 16:04:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HRwBd-0004Kk-6F for qemu-devel@nongnu.org; Thu, 15 Mar 2007 15:04:33 -0500 Received: from mail.codesourcery.com ([65.74.133.4]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HRwAa-0000nm-Ef for qemu-devel@nongnu.org; Thu, 15 Mar 2007 16:03:28 -0400 From: Paul Brook Subject: Re: [Qemu-devel] qemu-arm: wrong execution of post-indexed loads when Rm and Rd are the same register Date: Thu, 15 Mar 2007 20:03:20 +0000 References: <1173987324.9939.0.camel@edgy-laptop> In-Reply-To: <1173987324.9939.0.camel@edgy-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703152003.21276.paul@codesourcery.com> 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 Cc: Lauro Ramos Venancio On Thursday 15 March 2007 19:35, Lauro Ramos Venancio wrote: > 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] This is still wrong. The writeback must happen after the load. Your implementation will give incorrect results if the load faults. Paul