Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hxoos-000532-Sw for qemu-devel@nongnu.org; Mon, 11 Jun 2007 14:40:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hxoos-00052p-2j for qemu-devel@nongnu.org; Mon, 11 Jun 2007 14:40:50 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hxoos-00052m-0X for qemu-devel@nongnu.org; Mon, 11 Jun 2007 14:40:50 -0400 Received: from smtp.nokia.com ([131.228.20.172] helo=mgw-ext13.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 1Hxoor-0004mH-54 for qemu-devel@nongnu.org; Mon, 11 Jun 2007 14:40:49 -0400 Received: from esebh105.NOE.Nokia.com (esebh105.ntc.nokia.com [172.21.138.211]) by mgw-ext13.nokia.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id l5BIePlC004558 for ; Mon, 11 Jun 2007 21:40:34 +0300 From: Lauro Ramos Venancio Content-Type: multipart/mixed; boundary="=-pJjRHvacRK6JIbfjYm2T" Date: Mon, 11 Jun 2007 15:39:59 -0300 Message-Id: <1181587199.6149.2.camel@laurov-laptop> Mime-Version: 1.0 Subject: [Qemu-devel] [ARM patch] fix BLX 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 --=-pJjRHvacRK6JIbfjYm2T Content-Type: text/plain Content-Transfer-Encoding: 7bit The attached patch fixes a bug in execution of "blx lr". Current behavior: lr <- pc branch lr Expected behavior: temp <- lr lr <- pc branch temp Lauro --=-pJjRHvacRK6JIbfjYm2T Content-Disposition: attachment; filename=qemu-blx.patch Content-Type: text/x-patch; name=qemu-blx.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: target-arm/translate.c =================================================================== RCS file: /sources/qemu/qemu/target-arm/translate.c,v retrieving revision 1.51 diff -u -r1.51 translate.c --- target-arm/translate.c 1 May 2007 01:28:01 -0000 1.51 +++ target-arm/translate.c 8 Jun 2007 23:28:59 -0000 @@ -2325,9 +2325,9 @@ /* branch link/exchange thumb (blx) */ val = (uint32_t)s->pc; - gen_op_movl_T0_im(val); - gen_movl_reg_T0(s, 14); + gen_op_movl_T1_im(val); gen_movl_T0_reg(s, rm); + gen_movl_reg_T1(s, 14); gen_bx(s); break; case 0x5: /* saturating add/subtract */ --=-pJjRHvacRK6JIbfjYm2T--