From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JyQ1K-0007KN-8x for qemu-devel@nongnu.org; Tue, 20 May 2008 07:28:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JyQ1J-0007KB-EU for qemu-devel@nongnu.org; Tue, 20 May 2008 07:28:41 -0400 Received: from [199.232.76.173] (port=47543 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JyQ1J-0007K5-3O for qemu-devel@nongnu.org; Tue, 20 May 2008 07:28:41 -0400 Received: from savannah.gnu.org ([199.232.41.3]:33092 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JyQ1H-0007qv-7n for qemu-devel@nongnu.org; Tue, 20 May 2008 07:28:39 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1JyQ1E-0002Nl-1p for qemu-devel@nongnu.org; Tue, 20 May 2008 11:28:36 +0000 Received: from balrog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1JyQ1D-0002Nh-T2 for qemu-devel@nongnu.org; Tue, 20 May 2008 11:28:35 +0000 MIME-Version: 1.0 Errors-To: balrog Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Andrzej Zaborowski Message-Id: Date: Tue, 20 May 2008 11:28:35 +0000 Subject: [Qemu-devel] [4504] Fix 8-bit signed load/store and a typo. 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 Revision: 4504 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4504 Author: balrog Date: 2008-05-20 11:28:35 +0000 (Tue, 20 May 2008) Log Message: ----------- Fix 8-bit signed load/store and a typo. Modified Paths: -------------- trunk/tcg/arm/tcg-target.c Modified: trunk/tcg/arm/tcg-target.c =================================================================== --- trunk/tcg/arm/tcg-target.c 2008-05-20 11:26:40 UTC (rev 4503) +++ trunk/tcg/arm/tcg-target.c 2008-05-20 11:28:35 UTC (rev 4504) @@ -562,14 +562,14 @@ static inline void tcg_out_ld8s_r(TCGContext *s, int cond, int rd, int rn, int rm) { - tcg_out32(s, (cond << 28) | 0x019000f0 | + tcg_out32(s, (cond << 28) | 0x019000d0 | (rn << 16) | (rd << 12) | rm); } static inline void tcg_out_st8s_r(TCGContext *s, int cond, int rd, int rn, int rm) { - tcg_out32(s, (cond << 28) | 0x018000f0 | + tcg_out32(s, (cond << 28) | 0x018000d0 | (rn << 16) | (rd << 12) | rm); } @@ -1136,7 +1136,7 @@ } # endif - tcg_out_bl(s, cond, (tcg_target_long) qemu_st_helpers[s_bits] - + tcg_out_bl(s, cond, (tcg_target_long) qemu_st_helpers[s_bits] - (tcg_target_long) s->code_ptr); # if TARGET_LONG_BITS == 64 @@ -1157,7 +1157,7 @@ tcg_out_st8_12(s, COND_AL, data_reg, addr_reg, 0); break; case 0 | 4: - tcg_out_ld8s_8(s, COND_AL, data_reg, addr_reg, 0); + tcg_out_st8s_8(s, COND_AL, data_reg, addr_reg, 0); break; case 1: tcg_out_st16u_8(s, COND_AL, data_reg, addr_reg, 0);